Skip to content

Commit

Permalink
Fix example bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-oreilly committed Nov 13, 2024
1 parent dbd5738 commit 47858f6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pylossless/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@ def __init__(self, config_path=None, config=None):
"epoch": FlaggedEpochs(self),
"ic": FlaggedICs(),
}
self._config = None

if config:
self.config = config
if config_path is None:
Expand Down Expand Up @@ -527,6 +529,15 @@ def _repr_html_(self):

return html

@property
def config(self):
return self._config

@config.setter
def config(self, config):
self._config = config
self._config["version"] = version("pylossless")

@property
def config_fname(self):
warn('config_fname is deprecated and will be removed from future versions.',
Expand Down Expand Up @@ -1096,7 +1107,6 @@ def save(self, derivatives_path, overwrite=False, format="EDF", event_id=None):
extension=".yaml", suffix="ll_config", check=False
)

self.config["version"] = version("pylossless")
self.config.save(config_bidspath)

# Save flag["ch"]
Expand Down

0 comments on commit 47858f6

Please sign in to comment.