diff --git a/igneous_cli/cli.py b/igneous_cli/cli.py index 5a17e87f..70174bbf 100644 --- a/igneous_cli/cli.py +++ b/igneous_cli/cli.py @@ -278,7 +278,7 @@ def downsample( """ factor = (2,2,1) if volumetric: - factor = (2,2,2) + factor = (2,2,2) if compress and compress.lower() in ("none", "false"): compress = False @@ -379,7 +379,7 @@ def xfer( """ factor = (2,2,1) if volumetric: - factor = (2,2,2) + factor = (2,2,2) if compress and compress.lower() in ("none", "false"): compress = False @@ -1874,7 +1874,7 @@ def create( ): """Create a Precomputed volume from another data source. - Supports: .npy, .h5/.hdf5, .nii, .nrrd, and .ckl files + Supports: .npy, .h5/.hdf5, .nii/.nii.gz, .nrrd, and .ckl files Hopefully will support others such as TIFF in the future. """ @@ -1934,6 +1934,8 @@ def normalize_file_ext(filename): filename, ext2 = os.path.splitext(filename) if ext2 in ('.ckl', '.cpso'): return ext2 + elif ext2 == '.nii': + return ext2 elif ext2 == '': return ext ext = ext2 @@ -2053,4 +2055,4 @@ def purge(queuepath): """Delete all queued messages and zero out queue statistics.""" queuepath = normalize_path(queuepath) tq = TaskQueue(queuepath) - tq.purge() \ No newline at end of file + tq.purge()