Assigning starting_frames using VideoInterface in neuroconv #63
-
Hello! I've been trying to adopt integration of our metadata into the NWB format using this tutorial: https://neuroconv.readthedocs.io/en/main/conversion_examples_gallery/behavior/video.html The only major difference that I have with that tutorial is that we segment our data into multiple videos, so I provide a list of avi files to the After trying to add all the metadata in, I get an error when trying to call
How do I assign I've tried |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
So in theory you should just be able to add interface.run_conversion(nwbfile_path=path_to_save_nwbfile, metadata=metadata, starting_frames=[1.0, 2.0, 3.0, ...]) to that last line of the tutorial I also forget if this is something changed since the last official release or not - if that doesn't work, try installing current We plan to add a feature that calculates this value automatically under the hood but we haven't gotten around to that yet |
Beta Was this translation helpful? Give feedback.
starting_frames
is exposed as a conversion option: https://github.com/catalystneuro/neuroconv/blob/main/src/neuroconv/datainterfaces/behavior/video/videodatainterface.py#L232So in theory you should just be able to add
to that last line of the tutorial
I also forget if this is something changed since the last official release or not - if that doesn't work, try installing current
main
withpip install git+https://github.com/catalystneuro/neuroconv.git@main
We plan to add a feature that calculates this value automatically under the hood but we haven't gotten around to that yet