Skip to content

Commit

Permalink
FIX morph_source_space(): VolumeSourceSpace
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbrodbeck committed May 18, 2021
1 parent b6e9342 commit 01fd78b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eelbrain/_mne.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
except ImportError:
from mne import compute_morph_matrix

from ._data_obj import NDVar, Space, SourceSpace, VolumeSourceSpace
from ._data_obj import NDVar, Space, SourceSpaceBase, SourceSpace, VolumeSourceSpace
from ._utils.numpy_utils import index


Expand Down Expand Up @@ -474,7 +474,7 @@ def morph_source_space(
# convert to boolean mask (morphing involves interpolation, so the output is in floats)
mask = round(mask).astype(bool)
"""
if isinstance(data, SourceSpace):
if isinstance(data, SourceSpaceBase):
source, ndvar, axis = data, None, None
else:
ndvar = data
Expand Down

0 comments on commit 01fd78b

Please sign in to comment.