Skip to content

Commit

Permalink
FIX MneExperiment: initialization without existing cache
Browse files Browse the repository at this point in the history
Issue introduced by Parcellation classes
  • Loading branch information
christianbrodbeck committed Mar 11, 2017
1 parent 623efea commit 5a9598f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eelbrain/_experiment/mne_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,7 @@ def __init__(self, root=None, find_subjects=True, **state):
cache_state_path = self.get('cache-state-file')
raw_state = pipeline_dict(self._raw)
epoch_state = {k: v.as_dict() for k, v in self._epochs.iteritems()}
parcs_state = {k: v.as_dict() for k, v in self._parcs.iteritems()}
if exists(cache_state_path):
# check time stamp
if getmtime(cache_state_path) > time.time():
Expand Down Expand Up @@ -1359,7 +1360,6 @@ def __init__(self, root=None, find_subjects=True, **state):
invalid_cache['epochs'].add(epoch)

# parcs
parcs_state = {k: v.as_dict() for k, v in self._parcs.iteritems()}
for parc, params in cache_parcs.iteritems():
if parc not in parcs_state:
invalid_cache['parcs'].add(parc)
Expand Down

0 comments on commit 5a9598f

Please sign in to comment.