-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Use locking/unlocking for Info.update() #9914
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
Use locking/unlocking for Info.update() #9914
Conversation
|
the performance hit is 1.75 microseconds, I think we can live with that |
…f Mapping. [circle full]
larsoner
left a 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.
LGTM +1 for merge once CIs come back happy
|
Looks like there is one problem in /home/circleci/project/tutorials/simulation/80_dics.py, feel free to fix that one. Then you don't need to push with |
|
@larsoner Dammit... I pushed the fix before reading the message.. |
|
Just do a a |
|
... or even better, |
|
(All of our CIs auto-cancel existing runs when new commits show up) |
|
So I did notice that your CIs cancel runs on new commits, but I am not (yet) familiar with git in command lines.. For now, every time I tried, I messed up something 😅 |
|
And one more unrelated point, I noticed this: Raises: Guessing this dataset is missing the DigPoint for EEG 053 (set as bad channel). Is this intended? |
It shouldn't be. More likely it's that
Telling GitHub actions and Azure pipelines that they don't need to run. In theory the Azure style checks should run anyway (though I think we have a bug where they don't) and the only thing your commit should have changed was the doc build. I'll run style locally to make sure, and open a PR to make it so that our style checks always run... |
|
|
... the easiest thing might be to |
|
With 50 instead of 1 Hz, but yes.. No way to now easily set the filtering frequencies in an Info instance. |
|
Thanks @mscheltienne ! |
* upstream/main: API: Deprecate mayavi (mne-tools#9904) MRG: Method get_montage() should return good and bad channels. (mne-tools#9920) Use locking/unlocking for Info.update() (mne-tools#9914)
As discussed here #9867 (comment) I added support for the lock/unlock state in
Info.update().However, this does come with a performance penalty. Consider this simplified
Info:Simplified Info
With the default update method:
With the new update method looping on the input and using
__setitem__:Do you have any better idea?