Skip to content

Commit ca588e6

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

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/netCDF4/utils.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,9 @@ def _StartCountStride(elem, shape, dimensions=None, grp=None, datashape=None,\
428428
elif np.iterable(e) and np.array(e).dtype.kind in 'i': # Sequence of integers
429429
if start[...,i].size:
430430
start[...,i] = np.apply_along_axis(lambda x: e*x, i, np.ones(sdim[:-1]))
431-
indices[...,i] = np.apply_along_axis(lambda x: np.arange(sdim[i])*x, i, np.ones(sdim[:-1], int))
432-
433-
count[...,i] = 1
434-
stride[...,i] = 1
431+
indices[...,i] = np.apply_along_axis(lambda x: np.arange(sdim[i])*x, i, np.ones(sdim[:-1], int))
432+
count[...,i] = 1
433+
stride[...,i] = 1
435434

436435
# all that's left is SCALAR INTEGER #
437436
else:

0 commit comments

Comments
 (0)