-
Notifications
You must be signed in to change notification settings - Fork 84
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
TimeSeries can be written without 'data' dataset #1220
Comments
Also worth noting is that in the NWB schema, the type |
This raises the question: should the API be changed so that |
If this behavior must be changed, I would prefer making TimeSeries.data required in the constructor, unless there is broad consensus that time-series data can legitimately be time-series data there without data. If you can always use the validator to determine if a dataset is fully schema compliant, I don’t see why this is a problem? Does the mere existence of non schema compliant data create a problem? |
@ajtritt Sorry, I wasn't clear. I think making |
|
wouldn't this break backward compatibility (in code and ability to load previously saved .nwb files)? |
Yup, but we'll bump the version accordingly. We can modify the TimeSeries ObjectMapper to fill in a default value when reading a data-less TimeSeries. |
Related: |
Description
The
TimeSeries/data
dataset is required in the NWB 2.0+ schema. However, in PyNWB, you can create aTimeSeries
without data. This results in a validation error. This has come up before but I forget where. Credit to @yarikoptic for identifying the issue again.Steps to Reproduce
Environment
Checklist
The text was updated successfully, but these errors were encountered: