diff --git a/cmlreaders/readers/eeg.py b/cmlreaders/readers/eeg.py index acf555f..fbb5ff9 100644 --- a/cmlreaders/readers/eeg.py +++ b/cmlreaders/readers/eeg.py @@ -452,8 +452,14 @@ def load(self, **kwargs): "EEG data!" ) + # Because of reasons, PS4 experiments may or may not end with a 5. + if self.experiment.startswith("PS4") and self.experiment.endswith("5"): + experiment = self.experiment[:-1] + else: + experiment = self.experiment + finder = PathFinder(subject=self.subject, - experiment=self.experiment, + experiment=experiment, session=self.session, rootdir=self.rootdir)