Skip to content

Extracting session duration #143

Discussion options

You must be logged in to vote

There is no official stop time in NWB; the 'length' of the session can be inferred by iterating over all the main data streams and estimating it based on the maximum timestamp[-1] (last index of time vector) or alternatively time_series.shape[0] * rate (since the first axis of any series should be time) over all the temporal objects

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@twheatcroft07
Comment options

Answer selected by twheatcroft07
Comment options

You must be logged in to vote
0 replies
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