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

Make ImageSeries/data required #481

Merged
merged 1 commit into from
Aug 5, 2021
Merged

Make ImageSeries/data required #481

merged 1 commit into from
Aug 5, 2021

Conversation

rly
Copy link
Contributor

@rly rly commented Aug 5, 2021

The ImageSeries neurodata_type is a subtype of TimeSeries. TimeSeries requires the dataset "data"; however, ImageSeries makes data optional because "external_file" may be provided in place of "data". This breaks the rules of inheritance -- a child must have all required fields of a parent, and this inconsistency creates challenges in NeurodataWithoutBorders/pynwb#1274

This PR makes ImageSeries.data required and updates the documentation. If "external_file" is provided, then "data" should be set to an empty 3D array.

See also discussion here: NeurodataWithoutBorders/pynwb#1220

This is related to #462 which contains broader changes.

@rly rly requested review from bendichter and oruebel August 5, 2021 18:25
@oruebel oruebel merged commit 81cee96 into dev Aug 5, 2021
@oruebel oruebel deleted the fix/imageseries2 branch August 5, 2021 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants