Skip to content

Commit

Permalink
Merge pull request #211 from mivade/ps4-tweaks
Browse files Browse the repository at this point in the history
Try to normalize PS4 naming conventions
  • Loading branch information
mivade authored Aug 17, 2018
2 parents a6b4107 + 271d420 commit 9cb20eb
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 9cb20eb

Please sign in to comment.