Skip to content

Commit f254a95

Browse files
committed
only one return statement in _make_stc
1 parent 4ace218 commit f254a95

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mne/source_estimate.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,11 +421,12 @@ def guess_src_type():
421421
pass # noqa
422422

423423
if is_kernel:
424-
return Klass(data=(data, sens_data), vertices=vertices, tmin=tmin,
424+
stc = Klass(data=(data, sens_data), vertices=vertices, tmin=tmin,
425425
tstep=tstep, subject=subject)
426426
else:
427-
return Klass(data=data, vertices=vertices, tmin=tmin, tstep=tstep,
427+
stc = Klass(data=data, vertices=vertices, tmin=tmin, tstep=tstep,
428428
subject=subject)
429+
return stc
429430

430431

431432
def _verify_source_estimate_compat(a, b):

0 commit comments

Comments
 (0)