Skip to content

Commit 4ee45b7

Browse files
authored
Merge branch 'master' into fix_openephys_stream
2 parents faba17d + 3845cdc commit 4ee45b7

File tree

12 files changed

+17
-24
lines changed

12 files changed

+17
-24
lines changed

doc/source/authors.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,10 @@ and may not be the current affiliation of a contributor.
9090
* Xin Niu
9191
* Nikhil Chandra [40]
9292
* Luigi Petrucco [42]
93+
* Tommaso Lambresa [43]
94+
* Nina Kudryashova [37]
9395

94-
1. Centre de Recherche en Neuroscience de Lyon, CNRS UMR5292 - INSERM U1028 - Universite Claude Bernard Lyon 1
96+
1. Centre de Recherche en Neuroscience de Lyon, CNRS UMR5292 - INSERM U1028 - Université Claude Bernard Lyon 1
9597
2. Unité de Neuroscience, Information et Complexité, CNRS UPR 3293, Gif-sur-Yvette, France
9698
3. University of California, Berkeley
9799
4. Laboratoire de Neurosciences Intégratives et Adaptatives, CNRS UMR 6149 - Université de Provence, Marseille, France
@@ -133,6 +135,7 @@ and may not be the current affiliation of a contributor.
133135
40. Plexon Inc.
134136
41. Paris Brain Institute
135137
42. Istituto Italiano di Tecnologia (IIT), Italy
138+
43. University of Genoa, Italy
136139

137140

138141

neo/io/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
.. autoclass:: neo.io.MaxwellIO
168168
169169
.. autoattribute:: extensions
170-
170+
171171
.. autoclass:: neo.io.MedIO
172172
173173
.. autoattribute:: extensions

neo/rawio/axonrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
strings section:
2424
[uModifierNameIndex, uCreatorNameIndex, uProtocolPathIndex, lFileComment, lADCCChannelNames, lADCUnitsIndex
2525
lDACChannelNameIndex, lDACUnitIndex, lDACFilePath, nLeakSubtractADC]
26-
['', 'Clampex', '', 'C:/path/protocol.pro', 'some comment', 'IN 0', 'mV', 'IN 1', 'mV', 'Cmd 0', 'pA',
26+
['', 'Clampex', '', 'C:/path/protocol.pro', 'some comment', 'IN 0', 'mV', 'IN 1', 'mV', 'Cmd 0', 'pA',
2727
'Cmd 1', 'pA', 'Cmd 2', 'mV', 'Cmd 3', 'mV']
2828
2929
Information on abf 1 and 2 formats is available here:

neo/rawio/blackrockrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ def __read_nsx_dataheader_variant_b(
979979
# use of `int` avoids overflow problem
980980
data_size = int(dh["nb_data_points"]) * int(self.__nsx_basic_header[nsx_nb]["channel_count"]) * 2
981981
# define new offset (to possible next data block)
982-
offset = data_header[index]["offset_to_data_block"] + data_size
982+
offset = int(data_header[index]["offset_to_data_block"]) + data_size
983983

984984
index += 1
985985

neo/rawio/intanrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* http://intantech.com/files/Intan_RHD2000_data_file_formats.pdf
1717
* http://intantech.com/files/Intan_RHS2000_data_file_formats.pdf
1818
19-
19+
2020
Author: Samuel Garcia (Initial), Zach McKenzie & Heberto Mayorquin (Updates)
2121
2222
"""

neo/rawio/medrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
Class for reading MED (Multiscale Electrophysiology Data) Format.
3-
3+
44
Uses the dhn-med-py python package, created by Dark Horse Neuro, Inc.
55
66
Authors: Dan Crepeau, Matt Stead

neo/rawio/neuronexusrawio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* The *.xdat.json metadata file
77
* The *_data.xdat binary file of all raw data
88
* The *_timestamps.xdat binary file of the timestamp data
9-
9+
1010
Based on sample data is appears that the binary file is always a float32 format
1111
Other information can be found within the metadata json file
1212
1313
1414
The metadata file has a pretty complicated structure as far as I can tell
15-
a lot of which is dedicated to probe information, which won't be handle at the
15+
a lot of which is dedicated to probe information, which won't be handle at the
1616
the Neo level.
1717
1818
It appears that the metadata['status'] provides most of the information necessary

neo/rawio/openephysbinaryrawio.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,16 +358,14 @@ def _parse_header(self):
358358
rising_indices.extend(rising)
359359
falling_indices.extend(falling)
360360

361-
rising_indices = np.array(rising_indices)
362-
falling_indices = np.array(falling_indices)
361+
rising_indices = np.array(rising_indices, dtype=np.int64)
362+
falling_indices = np.array(falling_indices, dtype=np.int64)
363363

364364
# Sort the indices to maintain chronological order
365365
sorted_order = np.argsort(rising_indices)
366366
rising_indices = rising_indices[sorted_order]
367367
falling_indices = falling_indices[sorted_order]
368368

369-
durations = None
370-
# if len(rising_indices) == len(falling_indices):
371369
durations = timestamps[falling_indices] - timestamps[rising_indices]
372370
if not self._use_direct_evt_timestamps:
373371
timestamps = timestamps / info["sample_rate"]

neo/test/iotest/test_openephysbinaryio.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""
2-
3-
"""
1+
""" """
42

53
import unittest
64

neo/test/iotest/test_openephysio.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""
2-
3-
"""
1+
""" """
42

53
import unittest
64

0 commit comments

Comments
 (0)