You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realized that this line which was added in #537 makes the try clause succeed, even if self.old_car_demand is missing, which in the case of end-assignment-only runs results in a confusing message that the model run has not converged. The intention is originally that the try clause should fail in the first iteration, which forces relative gap to zero.
End-assignment-only always sets the iterations in helmet.py to zero, thus the warning in roughly helmet.py:125 always gets triggered.
Cast should not do anything in runtime, but since I do not know all its intricacies it is possible that for example None would get turned into something else.
Is it possible that old_car_demand is something else than int or ndarray? Then we should also adjust the type annotation.
I realized that this line which was added in #537 makes the
try
clause succeed, even ifself.old_car_demand
is missing, which in the case of end-assignment-only runs results in a confusing message that the model run has not converged. The intention is originally that thetry
clause should fail in the first iteration, which forces relative gap to zero.helmet-model-system/Scripts/assignment/departure_time.py
Line 54 in dc32a3e
The text was updated successfully, but these errors were encountered: