Skip to content

Commit

Permalink
Add note about conditional imports
Browse files Browse the repository at this point in the history
  • Loading branch information
AJQuinn committed Mar 2, 2024
1 parent c8acca3 commit 0e19726
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions osl/source_recon/beamforming.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
from mne._fiff.pick import pick_channels_cov, pick_info
from mne._fiff.proj import make_projector
except ImportError:
# Depreciated in mne 1.6
from mne.io.meas_info import _simplify_info
from mne.io.pick import pick_channels_cov, pick_info
from mne.io.proj import make_projector
Expand Down
1 change: 1 addition & 0 deletions osl/source_recon/rhino/coreg.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
try:
from mne._fiff.tag import _coil_trans_to_loc
except ImportError:
# Depreciated in mne 1.6
from mne.io import _coil_trans_to_loc

from fsl import wrappers as fsl_wrappers
Expand Down
1 change: 1 addition & 0 deletions osl/source_recon/rhino/forward_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
try:
from mne.source_space import _make_volume_source_space, _complete_vol_src
except ImportError:
# Depreciated in mne 1.6
from mne.source_space._source_space import _make_volume_source_space, _complete_vol_src

import osl.source_recon.rhino.utils as rhino_utils
Expand Down

0 comments on commit 0e19726

Please sign in to comment.