Use locking/unlocking for Info.update()#9914
Use locking/unlocking for Info.update()#9914larsoner merged 7 commits intomne-tools:mainfrom mscheltienne:use_locking_for_info_update
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.
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?