mne-tools / mne-python

MNE: Magnetoencephalography (MEG) and Electroencephalography (EEG) in Python
https://mne.tools
BSD 3-Clause "New" or "Revised" License
2.74k stars 1.33k forks source link

Export module inconsistent, needs API decision #10682

Open sappelhoff opened 2 years ago

sappelhoff commented 2 years ago

see https://github.com/mne-tools/mne-python/issues/10678#issuecomment-1139686322 and following 4 comments

In brief:

the problem

this is inconsistent, and we should clean that up / make a consistent choice before the module continues to grow.

IMHO, the current "MFF way" is not a good style and would lead to lots of confusing public functions, instead of the clean "trinity" of raw, epochs, evoked .export. Couldn't we solve this by allowing **kwargs and documenting the kwargs that can be passed? Similar to how we do it in ICA when users pick picard or fastica, etc.

What are your opinions?

cbrnr commented 2 years ago

+1 for **kwargs.

agramfort commented 2 years ago

ok for me.

Message ID: @.***>

larsoner commented 2 years ago

Agreed, let's go with **kwargs. I think there is no need to deprecate export_evokeds_mff, we can just make it so that export_evoked takes over the functionality (and people can transition to it easily/whenever) and we can remove it from the API docs.

larsoner commented 1 year ago

I think we have implemented the export interfaces so I'll close, but feel free to reopen if I missed something @sappelhoff

larsoner commented 1 year ago

Argh actually I think the inconsistency is still there, reopening. Sorry for the noise!