Skip to content

Commit

Permalink
Merge pull request NeuralEnsemble#1385 from PeterNSteinmetz/master
Browse files Browse the repository at this point in the history
Handle Pegasus 2.1.1 Nev files and tests of same.
  • Loading branch information
samuelgarcia authored Jan 31, 2024
2 parents 0b2e3ce + 2cce0d9 commit c18479b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion neo/rawio/neuralynxrawio/nlxheader.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def type_of_recording(self):

elif 'FileType' in self:

if 'FileVersion' in self and self['FileVersion'] in ['3.3', '3.4']:
if 'FileVersion' in self and self['FileVersion'] in ['3.2', '3.3', '3.4']:
return self['AcquisitionSystem'].split()[1].upper()

else:
Expand Down
7 changes: 5 additions & 2 deletions neo/test/rawiotest/test_neuralynxrawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ class TestNeuralynxRawIO(BaseTestRawIO, unittest.TestCase, ):
'neuralynx/Cheetah_v5.5.1/original_data',
'neuralynx/Cheetah_v5.6.3/original_data',
'neuralynx/Cheetah_v5.7.4/original_data',
'neuralynx/Cheetah_v6.3.2/incomplete_blocks']
'neuralynx/Cheetah_v6.3.2/incomplete_blocks'
]

def test_scan_ncs_files(self):

Expand Down Expand Up @@ -187,7 +188,9 @@ class TestNcsRecordingType(TestNeuralynxRawIO, unittest.TestCase):
('neuralynx/Cheetah_v5.6.3/original_data/CSC1.ncs', 'DIGITALLYNXSX'),
('neuralynx/Cheetah_v5.6.3/original_data/TT1.ntt', 'DIGITALLYNXSX'),
('neuralynx/Cheetah_v5.7.4/original_data/CSC1.ncs', 'DIGITALLYNXSX'),
('neuralynx/Cheetah_v6.3.2/incomplete_blocks/CSC1_reduced.ncs', 'DIGITALLYNXSX')]
('neuralynx/Cheetah_v6.3.2/incomplete_blocks/CSC1_reduced.ncs', 'DIGITALLYNXSX'),
('neuralynx/Pegasus_v2.1.1/Events_0008.nev','ATLAS') ]


def test_recording_types(self):

Expand Down

0 comments on commit c18479b

Please sign in to comment.