-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(block_analysis): add table for BlockForagingBout #432
feat(block_analysis): add table for BlockForagingBout #432
Conversation
bout_start: datetime(6) | ||
--- | ||
bout_end: datetime(6) | ||
bout_duration: float # (seconds) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy to remove duration here and in the foraging_bouts function as it is trivial to recompute from the start and end times
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I guess the docstring and comments in that function, and any code computing the durations should be updated as welll?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, that's because I saw the bout_durations
being computed in the function but then not used at all. I thought it was meant to be added to the result dataframe.
I think it's convenient to add in the table, but we can omit and compute on the fly if needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I now see that you mentioned this in #427, sorry I missed this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
Cool, looks good, thanks! |
5dacb45
into
SainsburyWellcomeCentre:datajoint_pipeline
@jkbhagatio , I also rearrange
get_threshold_associated_pellets
slightly to add more checks for empty dataframes.