Skip to content

Commit

Permalink
AMD process label subejcts
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbrodbeck committed Nov 26, 2021
1 parent f1b8189 commit 48f526b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eelbrain/plot/_brain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1226,11 +1226,11 @@ def set_brain(

if self._subject is None:
self._subject = subject
elif subject != self._subject:
elif subject and subject != self._subject:
raise ValueError(f"Different subject ({subject}) than previously added ({self._subject})")
if self._subjects_dir is None:
self._subjects_dir = subjects_dir
elif subjects_dir != self._subjects_dir:
elif subjects_dir and subjects_dir != self._subjects_dir:
raise ValueError(f"different subjects_dir ({subjects_dir}) than previously added ({self._subjects_dir})")

def _n_items(self):
Expand Down

0 comments on commit 48f526b

Please sign in to comment.