Skip to content
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

ENH: add Brain.set_time(time_in_seconds) #8415

Merged
merged 5 commits into from Oct 24, 2020

Conversation

drammock
Copy link
Member

closes #8401

mne/viz/_brain/_brain.py Outdated Show resolved Hide resolved
Copy link
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, feel free to merge once CIs and you are happy @GuillaumeFavelier

Comment on lines 2460 to 2465
"""Set the time to display (in seconds).

Parameters
----------
time_sec : float
The time to show.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it would be more future-proof to call the param time or t or so, in case we decide to add a (time_)unit kwarg later?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also call it time for api consistency

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And say it docstring it should be seconds

Copy link
Contributor

@GuillaumeFavelier GuillaumeFavelier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go for me 👍

@agramfort agramfort merged commit 21a3a08 into mne-tools:master Oct 24, 2020
@agramfort
Copy link
Member

thx @drammock

@drammock drammock deleted the brain-set-time branch November 2, 2020 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API: _Brain methods inconsistent between backends
5 participants