Skip to content

Commit 052d994

Browse files
Jeffrey WhitakerJeffrey Whitaker
authored andcommitted
update
1 parent 3dfea45 commit 052d994

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎src/netCDF4/utils.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,9 +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 not e.size
430-
start[...,i] = np.empty(0)
431-
else:
429+
if start[...,i].size:
432430
start[...,i] = np.apply_along_axis(lambda x: e*x, i, np.ones(sdim[:-1]))
433431
indices[...,i] = np.apply_along_axis(lambda x: np.arange(sdim[i])*x, i, np.ones(sdim[:-1], int))
434432

0 commit comments

Comments
 (0)