Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NeuralynxIO: partial support for NVT files #1480

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
9e0290d
fix: typos
LEGion-42 Apr 29, 2024
523e999
fix: correct regex in NlxHeader, previous regex doesn't register mult…
LEGion-42 May 23, 2024
59a8c75
Merge branch 'NeuralEnsemble:master' into feature-neuralynxrawio-nvt
LEGion-42 May 23, 2024
4133df6
fix: remove a print statement for debugging purpose
LEGion-42 May 23, 2024
bb9d891
feat(NeuralynxRawIO): finish most work for nvt file IO, some bugs sti…
LEGion-42 May 25, 2024
8aeb5be
feat(NeuralynxRawIO): add nvt support
LEGion-42 May 25, 2024
1661a10
feat(NeuralynxRawIO): add Resolution to AnalogSignal.array_annotation…
LEGion-42 May 25, 2024
e912625
chore: update gitignore
LEGion-42 May 25, 2024
9df446e
chore: update .gitignore
LEGion-42 May 25, 2024
7f4c8a3
chore(NeuralynxIO): add code documentation and option to ignore nvt f…
LEGion-42 May 26, 2024
9454ce5
fix: typos
LEGion-42 Apr 29, 2024
187168c
fix: correct regex in NlxHeader, previous regex doesn't register mult…
LEGion-42 May 23, 2024
9337562
fix: remove a print statement for debugging purpose
LEGion-42 May 23, 2024
4733eb0
feat(NeuralynxRawIO): finish most work for nvt file IO, some bugs sti…
LEGion-42 May 25, 2024
4b845a1
feat(NeuralynxRawIO): add nvt support
LEGion-42 May 25, 2024
872a82f
feat(NeuralynxRawIO): add Resolution to AnalogSignal.array_annotation…
LEGion-42 May 25, 2024
a88000e
chore: update gitignore
LEGion-42 May 25, 2024
c253ec4
chore: update .gitignore
LEGion-42 May 25, 2024
da31bc2
chore(NeuralynxIO): add code documentation and option to ignore nvt f…
LEGion-42 May 26, 2024
1aa8d24
Merge branch 'feature-neuralynxrawio-nvt' of https://github.com/LEGio…
LEGion-42 May 26, 2024
0affa95
fix(NeuralynxRawIO): fix error when reading multi-segmental data
LEGion-42 May 27, 2024
690009a
fix(testing): update header size verification with nvt data included
LEGion-42 May 27, 2024
0ae2bdd
fix(testing): update another header size verification i missed
LEGion-42 May 27, 2024
e13011a
fix(NeuralynxRawIO): fix KeyError and channel selection issue with _g…
LEGion-42 May 29, 2024
a2970fb
fix: exclude nvt data from ncs tests
LEGion-42 May 29, 2024
2c3b67d
fix: exclude nvt data from ncs tests
LEGion-42 May 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,5 @@ doc/*.nwb
*.plx
*.smr
B95.zip
grouped_ephys
grouped_ephys
nvt_test.py
10 changes: 9 additions & 1 deletion neo/io/neuralynxio.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@
class NeuralynxIO(NeuralynxRawIO, BaseFromRaw):
"""
Class for reading data from Neuralynx files.
This IO supports NCS, NEV, NSE and NTT file formats.
This IO supports NCS, NEV, NSE, NTT and NVT file formats.

NCS contains signals for one channel
NEV contains events
NSE contains spikes and waveforms for mono electrodes
NTT contains spikes and waveforms for tetrodes
NVT contains coordinates and head angles for video tracking
"""

_prefered_signal_group_mode = "group-by-same-units"
Expand All @@ -35,6 +36,7 @@ def __init__(
cache_path="same_as_resource",
exclude_filename=None,
keep_original_times=False,
ignore_nvt=False,
):
"""
Initialise IO instance
Expand All @@ -59,6 +61,11 @@ def __init__(
Preserve original time stamps as in data files. By default datasets are
shifted to begin at t_start = 0*pq.second.
Default: False
ignore_nvt : bool
Ignore NVT files when loading data. This is only a temporary argument before
support for multiple NVT files are added. Turn it on if there are multiple NVT
files in the directory.
Default: False
"""
NeuralynxRawIO.__init__(
self,
Expand All @@ -68,6 +75,7 @@ def __init__(
cache_path=cache_path,
exclude_filename=exclude_filename,
keep_original_times=keep_original_times,
ignore_nvt=ignore_nvt,
)
if self.rawmode == "one-file":
BaseFromRaw.__init__(self, filename)
Expand Down
Loading
Loading