Skip to content

Commit 3e4178a

Browse files
committed
wip
1 parent 5ccb9d5 commit 3e4178a

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

neo/rawio/spikegadgetsrawio.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@
66
77
Some doc here: https://bitbucket.org/mkarlsso/trodes/wiki/Configuration
88
9+
Note :
10+
* this file format have multiple version. news version include the gain for scaling.
11+
The actual implementation do not contain this feature because we don't have
12+
files to test this. So now the gain is "hardcoded"
13+
914
The file ".rec" have :
1015
* a fist part in text with xml informations
1116
* a second part for the binary buffer
1217
1318
Author: Samuel Garcia
1419
"""
15-
from .baserawio import (BaseRawIO, _signal_channel_dtype, _signal_stream_dtype,
20+
from .baserawio import (BaseRawIO, _signal_channel_dtype, _signal_stream_dtype,
1621
_spike_channel_dtype, _event_channel_dtype)
1722

1823
import numpy as np
@@ -29,7 +34,7 @@ def __init__(self, filename='', selected_streams=None):
2934
filename: str
3035
filename ".rec"
3136
32-
streams: None, list, str
37+
selected_streams: None, list, str
3338
sublist of streams to load/expose to API
3439
uselfull for spikeextractor when one stream isneed.
3540
For instance streams = ['ECU', 'trodes']

neo/test/iotest/test_spikegadgetsio.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
import unittest
1+
simport unittest
22

33
from neo.io import SpikeGadgetsIO
44
from neo.test.iotest.common_io_test import BaseTestIO
55

66

77
class TestSpikeGadgetsIO(BaseTestIO, unittest.TestCase, ):
88
ioclass = SpikeGadgetsIO
9-
files_to_test = ['20210225_em8_minirec2_ac.rec']
10-
files_to_download = files_to_test
9+
entities_to_download = ['spikegadgets']
10+
entities_to_test = [
11+
'spikegadgets/20210225_em8_minirec2_ac.rec',
12+
'spikegadgets/W122_06_09_2019_1_fromSD.rec'
13+
]
14+
1115

1216

1317
if __name__ == "__main__":

neo/test/rawiotest/test_spikegadgetsrawio.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66

77
class TestSpikeGadgetsRawIO(BaseTestRawIO, unittest.TestCase, ):
88
rawioclass = SpikeGadgetsRawIO
9-
entities_to_test = ['20210225_em8_minirec2_ac.rec']
10-
files_to_download = entities_to_test
9+
entities_to_download = ['spikegadgets']
10+
entities_to_test = [
11+
'spikegadgets/20210225_em8_minirec2_ac.rec',
12+
'spikegadgets/W122_06_09_2019_1_fromSD.rec'
13+
]
1114

1215

1316
if __name__ == "__main__":

0 commit comments

Comments
 (0)