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 95
95
from .fileholders import copy_file_map
96
96
from .batteryrunners import Report
97
97
from .arrayproxy import ArrayProxy
98
- from .openers import HAVE_ZSTD
99
98
100
99
# Sub-parts of standard analyze header from
101
100
# Mayo dbh.h file
@@ -907,9 +906,7 @@ class AnalyzeImage(SpatialImage):
907
906
_meta_sniff_len = header_class .sizeof_hdr
908
907
files_types = (('image' , '.img' ), ('header' , '.hdr' ))
909
908
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' )
913
910
914
911
makeable = True
915
912
rw = True
Original file line number Diff line number Diff line change 43
43
ImageDataError
44
44
)
45
45
from .volumeutils import Recoder
46
- from .openers import HAVE_ZSTD
47
46
48
47
# used for doc-tests
49
48
filepath = os .path .dirname (os .path .realpath (__file__ ))
@@ -491,9 +490,7 @@ class AFNIImage(SpatialImage):
491
490
header_class = AFNIHeader
492
491
valid_exts = ('.brik' , '.head' )
493
492
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' )
497
494
makeable = False
498
495
rw = False
499
496
ImageArrayProxy = AFNIArrayProxy
Original file line number Diff line number Diff line change 13
13
import numpy as np
14
14
15
15
from .filename_parser import splitext_addext , _stringify_path
16
- from .openers import ImageOpener , HAVE_ZSTD
16
+ from .openers import ImageOpener
17
17
from .filebasedimages import ImageFileError
18
18
from .imageclasses import all_image_classes
19
19
from .arrayproxy import is_proxy
20
20
from .deprecated import deprecate_with_version
21
21
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' )
25
23
26
24
27
25
def load (filename , ** kwargs ):
Original file line number Diff line number Diff line change 16
16
17
17
from .spatialimages import SpatialHeader , SpatialImage
18
18
from .fileslice import canonical_slicers
19
- from .openers import HAVE_ZSTD
20
19
21
20
_dt_dict = {
22
21
('b' , 'unsigned' ): np .uint8 ,
@@ -317,9 +316,7 @@ class Minc1Image(SpatialImage):
317
316
_meta_sniff_len = 4
318
317
valid_exts = ('.mnc' ,)
319
318
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' )
323
320
324
321
makeable = True
325
322
rw = False
You can’t perform that action at this time.
0 commit comments