Skip to content

Commit

Permalink
Still run if there's no post_process_config in config.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
staadecker committed Jan 28, 2023
1 parent 03d97b4 commit f962b67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion switch_model/wecc/get_inputs/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ def run_post_process(module):
post_process = getattr(mod, "post_process")

# Get specific configuration for the post process if specified
post_config = full_config["post_process_config"].get(module, None)
post_config = None
if "post_process_config" in full_config and full_config["post_process_config"] is not None:
post_config = full_config["post_process_config"].get(module, None)

# Run post process
post_process(post_config)
Expand Down

0 comments on commit f962b67

Please sign in to comment.