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

Fix bug on gettype on empty array, add validator tests #319

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

rly
Copy link
Contributor

@rly rly commented Mar 24, 2020

Motivation

Fix #317. Supersedes fix in #318. Closes #318. Adds a bunch of missing tests for validating the data type and shape of a dataset or attribute.

Fix issue identified in oruebel/ndx-icephys-meta#57 with validating empty datasets. This is triggered in the icephys extension because it may use an empty DynamicTable (with just and id column) resulting in an empty columns dataset.

How to test the behavior?

See oruebel/ndx-icephys-meta#57 (comment)

@rly rly requested review from ajtritt and oruebel March 24, 2020 06:12
@rly
Copy link
Contributor Author

rly commented Mar 24, 2020

It seems that something is going wrong with differentiating the YAML:

shape:
- null

from:

shape: null

No need to review yet. I will patch this up.

@rly
Copy link
Contributor Author

rly commented Mar 26, 2020

The error in PyNWB is due to dtype and shape not being passed from parent type to subtype, so this PR requires #321, which solves that issue, to be merged first.

@rly rly marked this pull request as draft June 24, 2020 22:27
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.

Validating empty array against spec should show better error
1 participant