Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azs - DLC - support old output_config 'BldgRepair' label for backward… #40

Merged
merged 1 commit into from
Mar 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pelicun/tools/DL_calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,9 @@ def run_pelicun(
# backwards-compatibility for v3.2 and earlier | remove after v4.0
if loss_config.get('BldgRepair', False):
loss_config['Repair'] = loss_config['BldgRepair']

if out_config_loss.get('BldgRepair', False):
out_config_loss['Repair'] = out_config_loss['BldgRepair']
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# if requested, calculate repair consequences
Expand Down
Loading