Skip to content

Commit 0f28c65

Browse files
Merge pull request #491 from pepkit/dev
release 0.40.5
2 parents 41ce615 + 992930b commit 0f28c65

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

peppy/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.40.4"
1+
__version__ = "0.40.5"

peppy/project.py

+4
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,9 @@ def to_dict(
331331
]
332332
else:
333333
sub_df = None
334+
335+
if not self.get(ORIGINAL_CONFIG_KEY):
336+
self[ORIGINAL_CONFIG_KEY] = self[CONFIG_KEY]
334337
try:
335338
self[ORIGINAL_CONFIG_KEY][NAME_KEY] = self.name
336339
except NotImplementedError:
@@ -418,6 +421,7 @@ def parse_config_file(
418421
"""
419422
if CONFIG_KEY not in self:
420423
self[CONFIG_KEY] = {}
424+
self[ORIGINAL_CONFIG_KEY] = {}
421425
if not os.path.exists(cfg_path) and not is_url(cfg_path):
422426
raise OSError(f"Project config file path does not exist: {cfg_path}")
423427
config = load_yaml(cfg_path)

0 commit comments

Comments
 (0)