Skip to content

Commit 03a37c1

Browse files
committed
fix: don't compress files so ng can read them
1 parent e74df9e commit 03a37c1

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

examples/load_tiff.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"/media/starfish/Storage/metacell/Isl1-GFP_E13-5_F129-3_CMN-R-L_02052024-GLC-stitched.ome.tiff"
1919
)
2020
OUTPUT_PATH = Path(
21-
"/media/starfish/Storage/metacell/converted/Isl1-GFP_E13-5_F129-3_CMN-R-L_02052024-GLC-stitched"
21+
"/media/starfish/Storage/metacell/converted/Isl1-GFP_E13-5_F129-3_CMN-R-L_02052024-GLC-stitched-raw"
2222
)
2323
OUTPUT_PATH.mkdir(exist_ok=True, parents=True)
2424
OVERWRITE = False
@@ -72,11 +72,19 @@
7272
max_mip=2,
7373
factor=Vec(2, 2, 2),
7474
)
75-
vols = [CloudVolume("file://" + str(OUTPUT_PATH), mip=i) for i in range(3)]
76-
vols[0].provenance.description = "Example data conversion"
77-
vols[0].commit_info()
78-
vols[0].commit_provenance()
79-
75+
vol = CloudVolume(
76+
"file://" + str(OUTPUT_PATH),
77+
info=info,
78+
mip=0,
79+
)
80+
vol.commit_info()
81+
vol.provenance.description = "Example data conversion"
82+
vol.commit_provenance()
83+
del vol
84+
85+
vols = [
86+
CloudVolume("file://" + str(OUTPUT_PATH), mip=i, compress=False) for i in range(3)
87+
]
8088
# %% Setup somewhere to hold progress
8189
progress_dir = OUTPUT_PATH / "progress"
8290
progress_dir.mkdir(exist_ok=True)

0 commit comments

Comments
 (0)