We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44745ac commit b410d92Copy full SHA for b410d92
nibabel/arrayproxy.py
@@ -36,7 +36,7 @@
36
import numpy as np
37
38
from . import openers
39
-from ._compression import HAVE_INDEXED_GZIP
+from . import _compression
40
from .fileslice import canonical_slicers, fileslice
41
from .volumeutils import apply_read_scaling, array_from_file
42
@@ -331,7 +331,7 @@ def _should_keep_file_open(self, keep_file_open):
331
if self._has_fh():
332
return False, False
333
# if the file is a gzip file, and we have_indexed_gzip,
334
- have_igzip = HAVE_INDEXED_GZIP and self.file_like.endswith('.gz')
+ have_igzip = _compression.HAVE_INDEXED_GZIP and self.file_like.endswith('.gz')
335
336
persist_opener = keep_file_open or have_igzip
337
return keep_file_open, persist_opener
0 commit comments