Skip to content

Assigning starting_frames using VideoInterface in neuroconv #63

Answered by CodyCBakerPhD
SkepticRaven asked this question in Q&A
Discussion options

You must be logged in to vote

starting_frames is exposed as a conversion option: https://github.com/catalystneuro/neuroconv/blob/main/src/neuroconv/datainterfaces/behavior/video/videodatainterface.py#L232

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 main with pip 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

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@SkepticRaven
Comment options

@SkepticRaven
Comment options

@CodyCBakerPhD
Comment options

@CodyCBakerPhD
Comment options

@SkepticRaven
Comment options

Answer selected by SkepticRaven
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants