Commit 47a49423 authored by Javier Quinteros's avatar Javier Quinteros
Browse files

Simplify weird array notation

parent f68c6646
......@@ -704,11 +704,11 @@ class TDMS(object):
if leftover:
if 'data' not in outbuf[ch]:
# Take samples each "self.__decimate" components
outbuf[ch]['data'] = nodecimation[ch][:-leftover][::self.__decimate]
outbuf[ch]['data'] = nodecimation[ch][:-leftover:self.__decimate]
else:
# Add samples each "self.__decimate" components
outbuf[ch]['data'] = np.append(outbuf[ch]['data'],
nodecimation[ch][:-leftover][::self.__decimate])
nodecimation[ch][:-leftover:self.__decimate])
else:
if 'data' not in outbuf[ch]:
# Take samples each "self.__decimate" components
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment