Skip to content

Commit

Permalink
bugfix when demand comes from PBE workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zsarnoczay committed Nov 27, 2024
1 parent a71ae77 commit 882aacb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pelicun/tools/DL_calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,11 @@ def _parse_config_file( # noqa: C901
) as f:
schema = json.load(f)

# add the demand file to the DL if needed
if is_specified(config, 'DL'):
if is_unspecified(config, 'DL/Demands/DemandFilePath'):
update(config, '/DL/Demands/DemandFilePath', demand_file)

# Validate the configuration against the schema
try:
validate(instance=config, schema=schema)
Expand Down

0 comments on commit 882aacb

Please sign in to comment.