From 992930b325b817fe2abfc6c2d49f40a95e44ea0b Mon Sep 17 00:00:00 2001 From: Khoroshevskyi Date: Thu, 25 Jul 2024 13:46:26 -0400 Subject: [PATCH] fixed bugs in peppy from csv --- peppy/_version.py | 2 +- peppy/project.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/peppy/_version.py b/peppy/_version.py index 008bea4f..d6d6823d 100644 --- a/peppy/_version.py +++ b/peppy/_version.py @@ -1 +1 @@ -__version__ = "0.40.4" +__version__ = "0.40.5" diff --git a/peppy/project.py b/peppy/project.py index cc0fd7e9..9f46cccc 100644 --- a/peppy/project.py +++ b/peppy/project.py @@ -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: @@ -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)