Skip to content

Commit

Permalink
fix save_pkl
Browse files Browse the repository at this point in the history
  • Loading branch information
matsvanes committed Sep 10, 2024
1 parent b1b2eca commit 3c73627
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osl/glm/glm_epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def save_pkl(self, outname, overwrite=True, save_data=False):
msg = "{} already exists. Please delete or do use overwrite=True."
raise ValueError(msg.format(outname))

self.config.detrend_func = None # Have to drop this to pickle
if hasattr(self, 'config'):
self.config.detrend_func = None # Have to drop this to pickle

# This is hacky - but pickles are all or nothing and I don't know how
# else to do it. HDF5 would be better longer term
Expand Down

0 comments on commit 3c73627

Please sign in to comment.