Skip to content

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