Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
Water network assets are recognized by a unique entry in their DL
configuration. This was not working properly and is now fixed.
  • Loading branch information
zsarnoczay committed Dec 3, 2024
1 parent 6fb0d38 commit d3e01dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pelicun/tools/DL_calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,8 @@ def run_pelicun( # noqa: C901
),
custom_model_dir=custom_model_dir,
scaling_specification=get(config, 'DL/Damage/ScalingSpecification'),
is_for_water_network_assessment=is_specified(
config, 'DL/Asset/ComponentDatabase/Water'
),
is_for_water_network_assessment='Water'
in get(config, 'DL/Asset/ComponentDatabase', ''),
)

if is_unspecified(config, 'DL/Losses/Repair'):
Expand Down

0 comments on commit d3e01dc

Please sign in to comment.