-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Annotations extras #13228
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
base: main
Are you sure you want to change the base?
Annotations extras #13228
Conversation
for more information, see https://pre-commit.ci
…ne-python into annotations-details
@drammock I implemented here the recommendations in your #13213 (comment) |
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.
just a quick first pass with some high-level stuff, LMK when I should take another look @PierreGtch
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 am onboard with the change although I am not convinced about the word "details"
Co-authored-by: Alexandre Gramfort <[email protected]> Co-authored-by: Daniel McCloy <[email protected]>
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 think this is close. I've left several questions below. One thing I want to make sure of (but ran out of time to check) is that users can modify extras
in-place (the way they can with onset
, duration
, etc). In other words:
annotations.onset[3] = 7.1 # this works
annotations.extras[3] = dict(reaction_time=0.7) # this should be possible
annotations.extras[3].update(dict(button="left")) # this also should be possible
Co-authored-by: Daniel McCloy <[email protected]>
for more information, see https://pre-commit.ci
@drammock I addressed your comments but left some questions. In particular:
This is possible and the type of the new extras will be checked
This is also possible but the type of the new extras will NOT be checked. You think this would be an issue? Feel free to merge if you are satisfied with the current state :) |
I think this may be the more common use case (it more closely mirrors what users currently do with the |
for more information, see https://pre-commit.ci
All good @drammock :) |
Reference issue (if any)
This PR replaces #13213
What does this implement/fix?
The difference with #13213 is that the additional information is a
list[dict[str, str | int | float | None]]
instead of a dataframe