Skip to content

Commit 8ea59d6

Browse files
author
Robert D. Vincent
committed
Address comments.
1 parent e890e3e commit 8ea59d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/externals/netcdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ def _read_var_array(self):
608608
self.fp.seek(begin_)
609609
data = fromstring(self.fp.read(a_size), dtype=dtype_)
610610
# Avoid exception for empty variables.
611-
if len(data.shape) != 1 or data.shape[0] != 0:
611+
if data.shape != (0,):
612612
data.shape = shape
613613

614614
self.fp.seek(pos)

0 commit comments

Comments
 (0)