File tree Expand file tree Collapse file tree 4 files changed +5
-16
lines changed Expand file tree Collapse file tree 4 files changed +5
-16
lines changed Original file line number Diff line number Diff line change 9595from .fileholders import copy_file_map
9696from .batteryrunners import Report
9797from .arrayproxy import ArrayProxy
98- from .openers import HAVE_ZSTD
9998
10099# Sub-parts of standard analyze header from
101100# Mayo dbh.h file
@@ -907,9 +906,7 @@ class AnalyzeImage(SpatialImage):
907906 _meta_sniff_len = header_class .sizeof_hdr
908907 files_types = (('image' , '.img' ), ('header' , '.hdr' ))
909908 valid_exts = ('.img' , '.hdr' )
910- _compressed_suffixes = ('.gz' , '.bz2' )
911- if HAVE_ZSTD : # If pyzstd installed., add .zst suffix
912- _compressed_suffixes = (* _compressed_suffixes , '.zst' )
909+ _compressed_suffixes = ('.gz' , '.bz2' , '.zst' )
913910
914911 makeable = True
915912 rw = True
Original file line number Diff line number Diff line change 4343 ImageDataError
4444)
4545from .volumeutils import Recoder
46- from .openers import HAVE_ZSTD
4746
4847# used for doc-tests
4948filepath = os .path .dirname (os .path .realpath (__file__ ))
@@ -491,9 +490,7 @@ class AFNIImage(SpatialImage):
491490 header_class = AFNIHeader
492491 valid_exts = ('.brik' , '.head' )
493492 files_types = (('image' , '.brik' ), ('header' , '.head' ))
494- _compressed_suffixes = ('.gz' , '.bz2' , '.Z' )
495- if HAVE_ZSTD : # If pyzstd installed., add .zst suffix
496- _compressed_suffixes = (* _compressed_suffixes , '.zst' )
493+ _compressed_suffixes = ('.gz' , '.bz2' , '.Z' , '.zst' )
497494 makeable = False
498495 rw = False
499496 ImageArrayProxy = AFNIArrayProxy
Original file line number Diff line number Diff line change 1313import numpy as np
1414
1515from .filename_parser import splitext_addext , _stringify_path
16- from .openers import ImageOpener , HAVE_ZSTD
16+ from .openers import ImageOpener
1717from .filebasedimages import ImageFileError
1818from .imageclasses import all_image_classes
1919from .arrayproxy import is_proxy
2020from .deprecated import deprecate_with_version
2121
22- _compressed_suffixes = ('.gz' , '.bz2' )
23- if HAVE_ZSTD : # If pyzstd installed., add .zst suffix
24- _compressed_suffixes = (* _compressed_suffixes , '.zst' )
22+ _compressed_suffixes = ('.gz' , '.bz2' , '.zst' )
2523
2624
2725def load (filename , ** kwargs ):
Original file line number Diff line number Diff line change 1616
1717from .spatialimages import SpatialHeader , SpatialImage
1818from .fileslice import canonical_slicers
19- from .openers import HAVE_ZSTD
2019
2120_dt_dict = {
2221 ('b' , 'unsigned' ): np .uint8 ,
@@ -317,9 +316,7 @@ class Minc1Image(SpatialImage):
317316 _meta_sniff_len = 4
318317 valid_exts = ('.mnc' ,)
319318 files_types = (('image' , '.mnc' ),)
320- _compressed_suffixes = ('.gz' , '.bz2' )
321- if HAVE_ZSTD : # If pyzstd installed., add .zst suffix
322- _compressed_suffixes = (* _compressed_suffixes , '.zst' )
319+ _compressed_suffixes = ('.gz' , '.bz2' , '.zst' )
323320
324321 makeable = True
325322 rw = False
You can’t perform that action at this time.
0 commit comments