We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1537c1b commit a34081cCopy full SHA for a34081c
1 file changed
src/muse/demand_share.py
@@ -299,8 +299,8 @@ def new_and_retro(
299
300
# Make sure the total new/retro agent quantity = 1
301
# TODO: ideally we should check this in the input layer
302
- assert total_retro_quantity == 1
303
- assert total_new_quantity == 1
+ assert abs(total_retro_quantity - 1) < 1e-2
+ assert abs(total_new_quantity - 1) < 1e-2
304
305
result = agent_concatenation(agent_demands)
306
assert "year" not in result.dims
@@ -399,7 +399,7 @@ def standard_demand(
399
400
# Make sure the total agent quantity = 1
401
402
- assert total_quantity == 1
+ assert abs(total_quantity - 1) < 1e-2
403
404
405
0 commit comments