Skip to content

Commit

Permalink
Handle Pegasus 2.1.1 Nev files and tests of same.
Browse files Browse the repository at this point in the history
Using the Pegasus 2.1.1 data already in the ephy_testing_data repository.
  • Loading branch information
Peter N. Steinmetz authored and Peter N. Steinmetz committed Jan 29, 2024
1 parent 3af1010 commit 2cce0d9
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 2cce0d9

Please sign in to comment.