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

API: Deprecate mayavi #9904

Merged
merged 5 commits into from
Oct 29, 2021
Merged

API: Deprecate mayavi #9904

merged 5 commits into from
Oct 29, 2021

Conversation

larsoner
Copy link
Member

@larsoner larsoner commented Oct 26, 2021

Closes #9753

@larsoner larsoner added this to the 0.24 milestone Oct 26, 2021
@GuillaumeFavelier GuillaumeFavelier marked this pull request as ready for review October 27, 2021 07:11
@larsoner
Copy link
Member Author

Seems to be working:

$ mne kit2fiff
<decorator-gen-565>:4: DeprecationWarning: Function kit2fiff is deprecated; The `mne kit2fiff` command will require the mne-kit-gui module after 0.24, install it using conda-forge or pip to continue using this utility.
$ pip install mne-kit-gui
Defaulting to user installation because normal site-packages is not writeable
Collecting mne-kit-gui
  Downloading mne_kit_gui-1.0.1-py3-none-any.whl (42 kB)
     |████████████████████████████████| 42 kB 473 kB/s 
...
$ mne kit2fiff

Screenshot from 2021-10-27 15-08-08

@christianbrodbeck can you see if you're happy with the instructions and such? I think the last step is to get conda-forge/staged-recipes#16660 merged and double check that the conda-forge package is actually there.

Copy link
Member

@agramfort agramfort left a comment

Choose a reason for hiding this comment

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

Amazing !!!

@christianbrodbeck
Copy link
Member

There still seem to be a number of imports of private functions from mne, would it make sense to just make those functions public in mne to make the authors of future changes aware that these should be stable API?

@larsoner
Copy link
Member Author

just make those functions public in mne to make the authors of future changes aware that these should be stable API?

I'd rather follow up any private changes in MNE with changes in this repo when necessary. I think it will require less work than adding more stuff to the MNE public API (which already probably has too much public stuff). MNE-Realtime, MNE-Connectivity, and (much longer duration) autoreject use private functions from MNE and it hasn't required too many changes over the years.

@christianbrodbeck
Copy link
Member

christianbrodbeck commented Oct 27, 2021 via email

@agramfort
Copy link
Member

agramfort commented Oct 28, 2021 via email

@christianbrodbeck
Copy link
Member

none of the mne devs are KIT users. So you are still the best person for this :)

I did not mean to pull out of this :) but I meant that in the case that private mne API changes were to break the GUI I would be unlikely to notice before the release, and instead end users would run into cryptic error messages...

@agramfort
Copy link
Member

agramfort commented Oct 28, 2021 via email

@christianbrodbeck
Copy link
Member

Ok, yes, that should catch most of it.

@larsoner
Copy link
Member Author

@christianbrodbeck last night I got an email from Azure about mne-kit-gui, hopefully got one, too. That means emails work. It said that the build passed, which just pointed out that I forgot to add the additional conditional to only email when the status is failed. I've done that so I think it will do that now! I set it to run daily rather than weekly since it's quick enough.

I've also checked and now the usage instructions in the readme work for me. Feel free to try @christianbrodbeck ! In the meantime @agramfort feel free to merge this

@larsoner
Copy link
Member Author

Just saw you approved so I'll go ahead and do it!

@larsoner larsoner merged commit 3a9b066 into mne-tools:main Oct 29, 2021
@larsoner larsoner deleted the mayavi branch October 29, 2021 15:54
larsoner added a commit to larsoner/mne-python that referenced this pull request Oct 29, 2021
* 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)
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.

MAINT: Drop support for PySurfer + mayavi?
3 participants