eelbrain.pipeline.MneExperiment.rename¶
-
MneExperiment.
rename
(self, old, new, exclude=False)¶ Rename all files corresponding to a pattern (or template)
Parameters: - old : str
Template for the files to be renamed. Can interpret ‘*’, but will raise an error in cases where more than one file fit the pattern.
- new : str
Template for the new names.
Examples
The following command will collect a specific file for each subject and place it in a common folder:
>>> e.rename('info-file', '/some_other_place/{subject}_info.txt')