Skip to content

Commit 0f7283a

Browse files
Update mne/source_estimate.py
Co-authored-by: Daniel McCloy <dan@mccloy.info>
1 parent b5513e6 commit 0f7283a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mne/source_estimate.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1912,7 +1912,10 @@ def save(self, fname, ftype="auto", overwrite=False, verbose=None):
19121912
elif fname.endswith(".h5"):
19131913
ftype = "h5"
19141914
else:
1915-
raise ValueError("Cannot infer file type, please specify ftype.")
1915+
logger.info(
1916+
"Cannot infer file type from `fname`; falling back to `.stc` format"
1917+
)
1918+
ftype = "stc"
19161919
_check_option("ftype", ftype, ["stc", "w", "h5"])
19171920
lh_data = self.data[: len(self.lh_vertno)]
19181921
rh_data = self.data[-len(self.rh_vertno) :]

0 commit comments

Comments
 (0)