Example code does not create required dataset in TimeSeries #35
Labels
category: bug
errors in the code or code behavior
priority: high
impacts proper operation or use of feature important to most users
Originally reported by: jeffteeters (Bitbucket: jeffteeters, GitHub: jeffteeters)
I tried implementing the example code on this page:
http://pynwb.readthedocs.io/en/latest/example.html#creating-and-writing-nwb-files
(under section “Write an NWBFile”) to create a TimeSeries.
This generates a TimeSeries that does not include “num_samples”, which is a required dataset. The sample code is below. The example would not run as written, so perhaps the code in the documentation needs to be updated. To allow it to run, I had to add several import statements (has comment "ADDED"). I also tried adding a specification of num_samples in the call to create the TimeSeries. Both with and without the addition of the argument (num_samples), the API failed to create num_samples dataset. There was no error or warning displayed that the required dataset “num_samples” was missing.
The text was updated successfully, but these errors were encountered: