Skip to content

Commit 91643b4

Browse files
committed
Fix test for volume source spaces with restricted orientations
1 parent 44ca4c2 commit 91643b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mne/minimum_norm/inverse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@ def _prepare_forward(forward, info, noise_cov, fixed, loose, rank, pca,
14071407
raise ValueError('Computing inverse solutions for volume source '
14081408
'spaces with fixed orientations is not '
14091409
'supported.')
1410-
if 'volume' in loose and any(v < 1 for v in loose.values()):
1410+
if 0 < loose.get('volume', 1) < 1:
14111411
raise ValueError('Computing inverse solutions with restricted '
14121412
'orientations (loose < 1) is not supported for '
14131413
'volume source spaces.')

0 commit comments

Comments
 (0)