Skip to content

Commit

Permalink
Try to normalize PS4 naming conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
mivade committed Aug 17, 2018
1 parent a6b4107 commit 271d420
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmlreaders/readers/eeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 271d420

Please sign in to comment.