Skip to content

Commit 3bfcfb3

Browse files
committed
blackrock main sampling rate
1 parent be8e663 commit 3bfcfb3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

neo/rawio/blackrockrawio.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ class BlackrockRawIO(BaseRawIO):
129129
extensions = ["ns" + str(_) for _ in range(1, 7)]
130130
extensions.extend(["nev", "sif", "ccf"]) # 'sif', 'ccf' not yet supported
131131
rawmode = "multi-file"
132+
# At the moment, this is used as the frequency of the spike channels
133+
# We need to document the origin of this value
134+
main_sampling_rate = 30000.0
135+
132136

133137
def __init__(
134138
self, filename=None, nsx_override=None, nev_override=None, nsx_to_load=None, load_nev=True, verbose=False
@@ -250,7 +254,6 @@ def __init__(
250254

251255
def _parse_header(self):
252256

253-
main_sampling_rate = 30000.0
254257

255258
event_channels = []
256259
spike_channels = []
@@ -298,7 +301,7 @@ def _parse_header(self):
298301
# TODO: Double check if this is the correct assumption (10 samples)
299302
# default value: threshold crossing after 10 samples of waveform
300303
wf_left_sweep = 10
301-
wf_sampling_rate = main_sampling_rate
304+
wf_sampling_rate = self.main_sampling_rate
302305
spike_channels.append((name, _id, wf_units, wf_gain, wf_offset, wf_left_sweep, wf_sampling_rate))
303306

304307
# scan events

0 commit comments

Comments
 (0)