Skip to content

Commit 2796e38

Browse files
Jeffrey WhitakerJeffrey Whitaker
authored andcommitted
update
1 parent 0e58a83 commit 2796e38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/netCDF4/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def _StartCountStride(elem, shape, dimensions=None, grp=None, datashape=None,\
426426

427427
# ITERABLE #
428428
elif np.iterable(e) and np.array(e).dtype.kind in 'i': # Sequence of integers
429-
if e:
429+
if np.array(e).size:
430430
start[...,i] = np.apply_along_axis(lambda x: e*x, i, np.ones(sdim[:-1]))
431431
else:
432432
start[...,i] = e

0 commit comments

Comments
 (0)