-
Notifications
You must be signed in to change notification settings - Fork 21
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
Show SpatialSeries when the second axis of the data is 1 #206
Comments
My main point is just that the data access through the actual NWBFile is 'fine' - has no issues and is clear what dims represent. Error stems from how the widgets code expects the output shape to be, which I think ought to be able to handle this case. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rendering
SpatialSeries
data withnwbwidgets
is not possible whenspatial_series.data.shape[1] == 1
.I noticed this issue when when trying to visualise
SpatialSeries
data for a dandi dataset : "animal_direction" which is aSpatialSeries
with a shape of(90050, 1)
(see below steps to reproduce).We discussed with @CodyCBakerPhD that this should be handled on the widgets side, as this data was created with
pynwb
without complains. Currently, this case gets handled as:https://github.com/NeurodataWithoutBorders/nwb-jupyter-widgets/blob/c891978d74a2e52a3ccbf65949f5b8192858e1dc/nwbwidgets/behavior.py#L93-L94
If you agree this should be handled on the widgets side as well, I'll try to create a PR for this as well.
Steps to reproduce with the real data:
The text was updated successfully, but these errors were encountered: