Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 5 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ A project with similar aims but for neuroimaging file formats is `NiBabel`_.
Code status
-----------

.. image:: https://travis-ci.org/NeuralEnsemble/python-neo.png?branch=master
:target: https://travis-ci.org/NeuralEnsemble/python-neo
:alt: Core Unit Test Status (TravisCI)
.. image:: https://github.com/NeuralEnsemble/python-neo/actions/workflows/full-test.yml/badge.svg?event=push&branch=master
.. image:: https://github.com/NeuralEnsemble/python-neo/actions/workflows/core-test.yml/badge.svg?event=push&branch=master
:target: https://github.com/NeuralEnsemble/python-neo/actions?query=event%3Apush+branch%3Amaster
:alt: IO Unit Test Status (Github Actions)
:alt: Core Test Status (Github Actions)
.. image:: https://github.com/NeuralEnsemble/python-neo/actions/workflows/io-test.yml/badge.svg?event=push&branch=master
:target: https://github.com/NeuralEnsemble/python-neo/actions?query=event%3Apush+branch%3Amaster
:alt: IO Test Status (Github Actions)
.. image:: https://coveralls.io/repos/NeuralEnsemble/python-neo/badge.png
:target: https://coveralls.io/r/NeuralEnsemble/python-neo
:alt: Unit Test Coverage
Expand Down
7 changes: 6 additions & 1 deletion neo/rawio/tdtrawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ def _parse_header(self):
for seg_index in range(nb_segment)} # key = seg_index then group_id

keep = info_channel_groups['TankEvType'] == EVTYPE_STREAM
missing_sev_channels = []
for stream_index, info in enumerate(info_channel_groups[keep]):
self._sig_sample_per_chunk[stream_index] = info['NumPoints']

Expand Down Expand Up @@ -252,7 +253,7 @@ def _parse_header(self):

# in case non or multiple sev files are found for current stream + channel
if len(sev_filename) != 1:
warnings.warn(f'Could not identify sev file for channel {chan_id}.')
missing_sev_channels.append(chan_id)
sev_filename = None

if (sev_filename is not None) and sev_filename.exists():
Expand All @@ -269,6 +270,10 @@ def _parse_header(self):
offset = 0.
signal_channels.append((chan_name, str(chan_id), sampling_rate, dtype,
units, gain, offset, stream_id))

if missing_sev_channels:
warnings.warn(f'Could not identify sev files for channels {missing_sev_channels}.')

signal_streams = np.array(signal_streams, dtype=_signal_stream_dtype)
signal_channels = np.array(signal_channels, dtype=_signal_channel_dtype)

Expand Down