Skip to content

Commit d656108

Browse files
author
Thinh Nguyen
committed
minor formatting, PEP8
1 parent 39580e1 commit d656108

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

elements_ephys/readers/spikeglx.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -295,18 +295,17 @@ def get_original_chans(self):
295295
"""
296296
if self.meta['snsSaveChanSubset'] == 'all':
297297
# output = int32, 0 to nSavedChans - 1
298-
chans = np.arange(0, int(self.meta['nSavedChans']))
298+
channels = np.arange(0, int(self.meta['nSavedChans']))
299299
else:
300300
# parse the snsSaveChanSubset string
301-
# split at commas
302-
chStrList = self.meta['snsSaveChanSubset'].split(sep = ',')
303-
chans = np.arange(0, 0) # creates an empty array of int32
304-
for sL in chStrList:
305-
currList = sL.split(sep = ':')
301+
channels = np.arange(0, 0) # creates an empty array of int32
302+
for sL in self.meta['snsSaveChanSubset'].split(sep = ','): # split at commas
303+
current_list = sL.split(sep = ':')
306304
# each set of continuous channels specified by chan1:chan2 inclusive
307-
newChans = np.arange(int(currList[0]), int(currList[min(1, len(currList) - 1)]) + 1)
308-
chans = np.append(chans, newChans)
309-
return chans
305+
new_channels = np.arange(int(current_list[0]), int(current_list[min(1, len(current_list) - 1)]) + 1)
306+
channels = np.append(channels, new_channels)
307+
return channels
308+
310309

311310
# ============= HELPER FUNCTIONS =============
312311

0 commit comments

Comments
 (0)