Skip to content

Commit

Permalink
azs - DLC - bugfix when checking config for Outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
zsarnoczay committed May 8, 2024
1 parent 30c4d43 commit 1935194
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pelicun/tools/DL_calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def run_pelicun(

config_ap['DL']['Outputs']['Settings'].update(
regional_out_config['Settings']
)
)

# save the extended config to a file
config_ap_path = Path(config_path.stem + '_ap.json').resolve()
Expand Down Expand Up @@ -457,7 +457,7 @@ def run_pelicun(
sample_size = int(sample_size_str)

# provide all outputs if the files are not specified
if ('Outputs' not in config) or (not config['Outputs']):
if ('Outputs' not in config['DL']) or (not config['DL']['Outputs']):
config['DL']['Outputs'] = full_out_config

# provide outputs in CSV by default
Expand Down

0 comments on commit 1935194

Please sign in to comment.