Skip to content

Commit

Permalink
Merge pull request #163 from Oxid15/repo_meta_in_line
Browse files Browse the repository at this point in the history
Repo meta in line
  • Loading branch information
Oxid15 authored Apr 22, 2023
2 parents aa3fe8a + d206807 commit b3e811c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cascade/models/model_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ class ModelRepo(Repo):
An interface to manage experiments with several lines of models.
When created, initializes an empty folder constituting a repository of model lines.
Stores its meta-data in its root folder. With every run if the repo was already
created earlier, updates its meta and logs changes in human-readable format in file history.log
Stores its metadata in its root folder. With every run if the repo was already
created earlier, updates its meta and logs changes in human-readable format in history file
Example
-------
Expand Down Expand Up @@ -130,7 +130,6 @@ def _load_lines(self) -> None:
self._lines = {
name: ModelLine(os.path.join(self._root, name),
model_cls=self._model_cls,
meta_prefix=self._meta_prefix,
meta_fmt=self._meta_fmt)
for name in sorted(os.listdir(self._root))
if os.path.isdir(os.path.join(self._root, name))}
Expand Down Expand Up @@ -177,7 +176,6 @@ def add_line(
meta_fmt = self._meta_fmt
line = ModelLine(folder,
*args,
meta_prefix=self._meta_prefix,
meta_fmt=meta_fmt,
**kwargs)
self._lines[name] = line
Expand Down

0 comments on commit b3e811c

Please sign in to comment.