Skip to content

Commit

Permalink
Merge pull request #40 from zsarnoczay/master
Browse files Browse the repository at this point in the history
azs - DLC - support old output_config 'BldgRepair' label for backward…
  • Loading branch information
zsarnoczay authored Mar 30, 2024
2 parents 32148ae + a446d49 commit 1a7a833
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit 1a7a833

Please sign in to comment.