@@ -26,27 +26,24 @@ class TestPlexon2RawIO(
2626):
2727 rawioclass = Plexon2RawIO
2828 entities_to_download = ["plexon" ]
29- entities_to_test = ["plexon/4chDemoPL2.pl2" ,
30- "plexon/NC16FPSPKEVT_1m.pl2"
31- ]
32-
29+ entities_to_test = ["plexon/4chDemoPL2.pl2" , "plexon/NC16FPSPKEVT_1m.pl2" ]
3330
3431 def test_check_enabled_flags (self ):
3532 """
3633 This test loads a 1-minute PL2 file with 16 channels' each
37- of field potential (FP), and spike (SPK) data. The channels
38- cycle through 4 possible combinations of m_ChannelEnabled
39- and m_ChannelRecordingEnabled - (True, True), (True, False),
40- (False, True), and (False, False). With 16 channels for each
41- source, each combination of flags occurs 4 times. Only the
34+ of field potential (FP), and spike (SPK) data. The channels
35+ cycle through 4 possible combinations of m_ChannelEnabled
36+ and m_ChannelRecordingEnabled - (True, True), (True, False),
37+ (False, True), and (False, False). With 16 channels for each
38+ source, each combination of flags occurs 4 times. Only the
4239 first combination (True, True) causes data to be recorded to
4340 disk. Therefore, we expect the following channels to be loaded by
4441 Neo: FP01, FP05, FP09, FP13, SPK01, SPK05, SPK09, and SPK13.
45-
42+
4643 Note: the file contains event (EVT) data as well. Although event
4744 channel headers do contain m_ChannelEnabled and m_ChannelRecording-
4845 Enabled flags, the UI for recording PL2 files does not expose any
49- controls by which these flags can be changed from (True, True).
46+ controls by which these flags can be changed from (True, True).
5047 Therefore, no test for event channels is necessary here.
5148 """
5249
@@ -58,13 +55,14 @@ def test_check_enabled_flags(self):
5855
5956 # Check that the names of the loaded signal channels match what we expect
6057 signal_channel_names = reader .header ["signal_channels" ]["name" ].tolist ()
61- expected_signal_channel_names = ["FP01" ,"FP05" ,"FP09" ,"FP13" ]
58+ expected_signal_channel_names = ["FP01" , "FP05" , "FP09" , "FP13" ]
6259 assert_equal (signal_channel_names , expected_signal_channel_names )
6360
6461 # Check that the names of the loaded spike channels match what we expect
6562 spike_channel_names = reader .header ["spike_channels" ]["name" ].tolist ()
6663 expected_spike_channel_names = ["SPK01.0" , "SPK05.0" , "SPK09.0" , "SPK13.0" ]
6764 assert_equal (spike_channel_names , expected_spike_channel_names )
6865
66+
6967if __name__ == "__main__" :
7068 unittest .main ()
0 commit comments