Skip to content

Commit

Permalink
More explicit exports
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrnr committed Feb 25, 2025
1 parent 753f92a commit 5bd359d
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 17 deletions.
1 change: 1 addition & 0 deletions mne/channels/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
make_1020_channel_selections,
combine_channels,
read_vectorview_selection,
unify_bad_channels,
_SELECTIONS,
_EEG_SELECTIONS,
_divide_to_regions,
Expand Down
37 changes: 21 additions & 16 deletions mne/decoding/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,24 @@

"""Decoding and encoding, including machine learning and receptive fields."""

from .transformer import (
PSDEstimator,
Vectorizer,
UnsupervisedSpatialFilter,
TemporalFilter,
Scaler,
FilterEstimator,
)
from .base import BaseEstimator, LinearModel, get_coef, cross_val_multiscore
from .csp import CSP, SPoC
from .ssd import SSD
from .ems import compute_ems, EMS
from .time_frequency import TimeFrequency
from .receptive_field import ReceptiveField
from .time_delaying_ridge import TimeDelayingRidge
from .search_light import SlidingEstimator, GeneralizingEstimator
try:
import sklearn
except ImportError:
pass
else:
from .transformer import (
PSDEstimator,
Vectorizer,
UnsupervisedSpatialFilter,
TemporalFilter,
Scaler,
FilterEstimator,
)
from .base import BaseEstimator, LinearModel, get_coef, cross_val_multiscore
from .csp import CSP, SPoC
from .ssd import SSD
from .ems import compute_ems, EMS
from .time_frequency import TimeFrequency
from .receptive_field import ReceptiveField
from .time_delaying_ridge import TimeDelayingRidge
from .search_light import SlidingEstimator, GeneralizingEstimator
2 changes: 2 additions & 0 deletions mne/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from . import boxy
from . import persyst
from . import eeglab
from . import neuralynx
from . import nihon
from . import nsx

Expand Down Expand Up @@ -51,6 +52,7 @@
from .snirf import read_raw_snirf
from .persyst import read_raw_persyst
from .fieldtrip import read_raw_fieldtrip, read_epochs_fieldtrip, read_evoked_fieldtrip
from .neuralynx import read_raw_neuralynx
from .nihon import read_raw_nihon
from .nsx import read_raw_nsx
from ._read_raw import read_raw
Expand Down
3 changes: 2 additions & 1 deletion mne/preprocessing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@
from . import ieeg
from ._css import cortical_signal_suppression
from .hfc import compute_proj_hfc

from ._lof import find_bad_channels_lof
from ._pca_obs import apply_pca_obs
from . import eyetracking
2 changes: 2 additions & 0 deletions mne/time_frequency/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
morlet,
tfr_morlet,
AverageTFR,
AverageTFRArray,
tfr_multitaper,
read_tfrs,
write_tfrs,
EpochsTFR,
EpochsTFRArray,
tfr_array_morlet,
fwhm,
)
Expand Down
2 changes: 2 additions & 0 deletions mne/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
_pl,
_clean_names,
pformat,
_empty_hash,
_file_like,
_explain_exception,
_get_argvalues,
Expand Down Expand Up @@ -188,6 +189,7 @@
_hashable_ndarray,
_custom_lru_cache,
_array_repr,
_date_to_julian,
)
from .mixin import (
SizeMixin,
Expand Down
1 change: 1 addition & 0 deletions mne/viz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,4 @@
from ._figure import get_browser_backend, set_browser_backend, use_browser_backend
from ._proj import plot_projs_joint
from . import ui_events
from .evoked_field import EvokedField

0 comments on commit 5bd359d

Please sign in to comment.