gallantlab / pycortex

Pycortex is a python-based toolkit for surface visualization of fMRI data
https://gallantlab.github.io/pycortex
BSD 2-Clause "Simplified" License
581 stars 137 forks source link

FIX allow any character in mask name #533

Closed mvdoc closed 4 months ago

mvdoc commented 5 months ago

The regex in _find_mask only allowed word characters in the name, so a mask name such as mask_v1+v2+v3.nii.gz would not be recognized.

This PR makes the regex more general. However, there's an argument to be made whether we should allow "+" in mask filenames. If we don't want, then we should enforce proper filenames in cortex.db.save_mask.