Skip to content

Commit

Permalink
Assert rehab costs are numeric type
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-fred committed Apr 2, 2024
1 parent c2a7a29 commit 2b3298a
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 2b3298a

Please sign in to comment.