#NEWLINE# def channel_indexes_in_segment( seg ) : #NEWLINE# #INDENT# 'List channel indexes of analogsignals and analogsignalarrays' #NEWLINE# channel_indices = [ ] #NEWLINE# for sig in seg . analogsignals : #NEWLINE# #INDENT# channel_indices . append ( sig . recordingchannel . index ) #NEWLINE# #UNINDENT# for asa in seg . analogsignalarrays : #NEWLINE# #INDENT# channel_indices . append ( asa . recordingchannelgroup . channel_indexes ) #NEWLINE# #UNINDENT# return channel_indices