Skip to content

Commit

Permalink
Merge pull request #491 from pepkit/dev
Browse files Browse the repository at this point in the history
release 0.40.5
  • Loading branch information
khoroshevskyi authored Jul 25, 2024
2 parents 41ce615 + 992930b commit 0f28c65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion peppy/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.40.4"
__version__ = "0.40.5"
4 changes: 4 additions & 0 deletions peppy/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ def to_dict(
]
else:
sub_df = None

if not self.get(ORIGINAL_CONFIG_KEY):
self[ORIGINAL_CONFIG_KEY] = self[CONFIG_KEY]
try:
self[ORIGINAL_CONFIG_KEY][NAME_KEY] = self.name
except NotImplementedError:
Expand Down Expand Up @@ -418,6 +421,7 @@ def parse_config_file(
"""
if CONFIG_KEY not in self:
self[CONFIG_KEY] = {}
self[ORIGINAL_CONFIG_KEY] = {}
if not os.path.exists(cfg_path) and not is_url(cfg_path):
raise OSError(f"Project config file path does not exist: {cfg_path}")
config = load_yaml(cfg_path)
Expand Down

0 comments on commit 0f28c65

Please sign in to comment.