[Bug]: Unbounded stream to dataset with H5DataIO timestamps fails #1929
Labels
category: bug
errors in the code or code behavior
priority: high
impacts proper operation or use of feature important to most users
Milestone
What happened?
I am streaming multiple unbounded data streams to NWB (i.e., recording live data), with one stream->dataset per file; I intend to combine files after recording. Most of the documentation around iterative writing outlines how to wrap around a DataChunkIterator around a generator but I find this cumbersome for unbounded data because I need to put the generator in another thread that pulls from a queue, and use the main thread to supply data to the queue.
The alternative approach is more flexible and seems to fit my use case better. However, the alternative approach does not work for timestamps! It seems the DataChunkIterator does work for timestamps.
Unfortunately, I don't fully trust the reported sample rate coming from my data sources so I would prefer to store the timestamps over setting the start time and srate only.
If using a
DataChunkIterator
is preferable to usingH5DataIO
then are there any other patterns I should try? Or do I bite the bullet and use the multi-threaded approach?Steps to Reproduce
Traceback
Operating System
macOS
Python Executable
Python
Python Version
3.9
Package Versions
env.txt
Code of Conduct
The text was updated successfully, but these errors were encountered: