Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting of Intan RHD files fails when plots metadata is unspecified #325

Open
jpgill86 opened this issue Dec 12, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@jpgill86
Copy link
Owner

The Intan RHD example file added in PR #324 (created by the Intan RHX recording software in demo mode) cannot be plotted properly unless the list of channels to plot is given explicitly (hence this was added to metadata-for-tests.yml).

If plots metadata is omitted, the display looks like this:

image

The following error appears in the console:

Traceback (most recent call last):
  File "c:\users\jeffr\documents\python-dev\ephyviewer\git-repo\ephyviewer\ephyviewer\traceviewer.py", line 370, in on_request_data
    sigs_chunk, dict_scatter = self.get_data(t, t_start, t_stop, total_gains, total_offsets, visibles, decimation_method)
  File "c:\users\jeffr\documents\python-dev\ephyviewer\git-repo\ephyviewer\ephyviewer\traceviewer.py", line 297, in get_data
    sigs_chunk = self.source.get_chunk(i_start=i_start, i_stop=i_stop)
  File "c:\users\jeffr\documents\python-dev\ephyviewer\git-repo\ephyviewer\ephyviewer\datasource\neosource.py", line 215, in get_chunk
    sigs = self.neorawio.get_analogsignal_chunk(block_index=self.block_index, seg_index=self.seg_index,
  File "c:\users\jeffr\documents\python-dev\neo\git-repo\python-neo\neo\rawio\baserawio.py", line 574, in get_analogsignal_chunk
    raw_chunk = self._get_analogsignal_chunk(
  File "c:\users\jeffr\documents\python-dev\neo\git-repo\python-neo\neo\rawio\intanrawio.py", line 156, in _get_analogsignal_chunk
    sigs_chunk[:, i] = data_chan[block_start:block_stop].flatten()[sl0:sl1]
ValueError: could not broadcast input array from shape (704,) into shape (2814,)
@jpgill86 jpgill86 added the bug Something isn't working label Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant