We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bdc310 commit 9f46ab9Copy full SHA for 9f46ab9
activestorage/storage.py
@@ -28,11 +28,13 @@ def reduce_chunk(rfile,
28
storage implementations we'll change to controlled vocabulary)
29
30
"""
31
-
32
- #FIXME: for the moment, open the file every time ... we might want to do that, or not
33
obj_type = type(rfile)
34
print(f"Reducing chunk of object {obj_type}")
+
35
if not obj_type is pyfive.high_level.Dataset:
+ #FIXME: for the moment, open the file every time ... we might want to do that, or not
36
+ # we could just use an instance of pyfive.high_level.Dataset.id
37
+ # passed directly from active.py, as below
38
with open(rfile,'rb') as open_file:
39
# get the data
40
chunk = read_block(open_file, offset, size)
0 commit comments