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 e890e3e commit 8ea59d6Copy full SHA for 8ea59d6
nibabel/externals/netcdf.py
@@ -608,7 +608,7 @@ def _read_var_array(self):
608
self.fp.seek(begin_)
609
data = fromstring(self.fp.read(a_size), dtype=dtype_)
610
# Avoid exception for empty variables.
611
- if len(data.shape) != 1 or data.shape[0] != 0:
+ if data.shape != (0,):
612
data.shape = shape
613
614
self.fp.seek(pos)
0 commit comments