Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-fred committed Mar 28, 2024
1 parent 818ec55 commit 4f4472b
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ direct_damages:
'road_unpaved',
'rail_railway',
]
rehab_cost_multiplier: 0.5
rehab_cost_multiplier: 2


###############################
Expand Down
4 changes: 2 additions & 2 deletions src/open_gira/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def read_rehab_costs(path: str) -> pd.DataFrame:
assert costs.asset_type.dtype == object

# check costs
assert costs.iloc[:, 1].dtype == float
assert pd.api.types.is_numeric_dtype(costs.iloc[:, 1].dtype)
assert (costs.iloc[:, 1] >= 0).all()

return costs
return costs
1 change: 1 addition & 0 deletions tests/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ direct_damages:
'road_unpaved',
'rail_railway',
]
rehab_cost_multiplier: 1


###############################
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 4f4472b

Please sign in to comment.