Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cortex/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def get_surf(self, subject, type, hemisphere="both", merge=False, nudge=False):
fnm = str(os.path.splitext(files[type][hemi])[0])
return formats.read(fnm)
except KeyError:
raise IOError
raise IOError(f"Surface type '{type}' not found for {hemi} hemisphere of subject '{subject}'")

def save_mask(self, subject, xfmname, type, mask):
fname = self.get_paths(subject)['masks'].format(xfmname=xfmname, type=type)
Expand Down