Skip to content

Commit

Permalink
Fix test for volume source spaces with restricted orientations
Browse files Browse the repository at this point in the history
  • Loading branch information
wmvanvliet committed Apr 19, 2022
1 parent 44ca4c2 commit 91643b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mne/minimum_norm/inverse.py
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,7 @@ def _prepare_forward(forward, info, noise_cov, fixed, loose, rank, pca,
raise ValueError('Computing inverse solutions for volume source '
'spaces with fixed orientations is not '
'supported.')
if 'volume' in loose and any(v < 1 for v in loose.values()):
if 0 < loose.get('volume', 1) < 1:
raise ValueError('Computing inverse solutions with restricted '
'orientations (loose < 1) is not supported for '
'volume source spaces.')
Expand Down

0 comments on commit 91643b4

Please sign in to comment.