-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2da0020
commit adc9e45
Showing
5 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
"""NSP related I/O functions.""" | ||
|
||
from convnwb.io.utils import check_folder | ||
|
||
neo = safe_import('neo') | ||
|
||
################################################################################################### | ||
################################################################################################### | ||
|
||
@check_dependency(neo, 'neo') | ||
def load_blackrock(file_name, folder, nsx_to_load=None, load_nev=None): | ||
"""Load a set of Blackrock files. | ||
Parameters | ||
---------- | ||
file_name : str | ||
The file name to load. | ||
folder : str or Path | ||
The folder to load the file(s) from. | ||
nsx_to_load : int or list, optional | ||
Which nsx file(s) to load. | ||
load_nev : bool, optional, default: True | ||
Whether to load the nev file. | ||
Returns | ||
------- | ||
reader : neo.rawio.blackrockrawio.BlackrockRawIO | ||
Blackrock file reader. | ||
""" | ||
|
||
reader = neo.rawio.BlackrockRawIO(\ | ||
check_folder(file_name, folder), nsx_to_load=nsx_to_load, load_nev=load_nev) | ||
reader.parse_header() | ||
|
||
return reader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ scikit-learn | |
pandas | ||
scipy | ||
h5py | ||
mat73 | ||
mat73 | ||
neo |