File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -295,18 +295,17 @@ def get_original_chans(self):
295
295
"""
296
296
if self .meta ['snsSaveChanSubset' ] == 'all' :
297
297
# output = int32, 0 to nSavedChans - 1
298
- chans = np .arange (0 , int (self .meta ['nSavedChans' ]))
298
+ channels = np .arange (0 , int (self .meta ['nSavedChans' ]))
299
299
else :
300
300
# 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 = ':' )
306
304
# 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
+
310
309
311
310
# ============= HELPER FUNCTIONS =============
312
311
You can’t perform that action at this time.
0 commit comments