Skip to content

Commit 9f46ab9

Browse files
committed
add inline comment
1 parent 0bdc310 commit 9f46ab9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

activestorage/storage.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ def reduce_chunk(rfile,
2828
storage implementations we'll change to controlled vocabulary)
2929
3030
"""
31-
32-
#FIXME: for the moment, open the file every time ... we might want to do that, or not
3331
obj_type = type(rfile)
3432
print(f"Reducing chunk of object {obj_type}")
33+
3534
if not obj_type is pyfive.high_level.Dataset:
35+
#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
3638
with open(rfile,'rb') as open_file:
3739
# get the data
3840
chunk = read_block(open_file, offset, size)

0 commit comments

Comments
 (0)