Closed weiglszonja closed 1 year ago
Thanks for reporting this, @weiglszonja. Do you think you can fix it?
thanks, yes, I'll try to open a PR by tomorrow.
Interestingly, we have tests that this is intended behavior for TimeSeries
whose data is explicitly set:
and I know we must have previously considered the special case of ImageSeries
with external mode, but alas no actual tests for that skip...
Yeah I noticed, so the correct fix is to check when external mode is on, and data is empty, skip it.
What happened?
I created an ImageSeries with external file format and timestamps (data is not specified), after writing such an ImageSeries to NWB and running
nwbinspector
I get the following message:0.8 stub_functional_scan_17797_4_10_v2.nwb: check_timestamps_match_first_dimension - 'ImageSeries' object at location '/acquisition/Video: stimulus_17797_4_10_v4' Message: The length of the first dimension of data (0) does not match the length of timestamps (381078).
Steps to Reproduce
Traceback
No response
Operating System
Linux
Python Executable
Python
Python Version
3.10
Usage
Library (Python code)
Were you streaming with ROS3?
No
Package Versions
No response
Code of Conduct