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
Describe the bug
This came up when I ran ABM3 100% sample with sharrow set to test. See issue ActivitySim/sandag-abm3-example#18. I found a work around to debug but it would be better if we can fix sharrow...
In sharrow test mode, when the utility returned by sharrow does not match the non-sharrow utility, sharrow attempts to retrieve data and print out possible problematic expressions to help debugging. See code here:
f"big problem: {len(misses[0])} missed close values "
f"out of {sh_util.size} ({100*len(misses[0]) /sh_util.size:.2f}%)"
)
print(f"{sh_util.shape=}")
print(misses)
_sh_flow_load=sh_flow.load(sh_tree)
print("possible problematic expressions:")
forexpr_n, exprinenumerate(exprs):
However, currently the run will get stuck (no crash no response) in line 807 _sh_flow_load = sh_flow.load(sh_tree). Not sure if this is broken due to some recent changes.
Also, for many example models, the sharrow test mode has only been run with small samples, and issues like this seem to get discovered especially when we run large samples (100% HH). This means when agencies adopt sharrow, we should probably recommend running test mode with a large (enough) sample.
Describe the bug
This came up when I ran ABM3 100% sample with sharrow set to
test
. See issue ActivitySim/sandag-abm3-example#18. I found a work around to debug but it would be better if we can fix sharrow...In sharrow
test
mode, when the utility returned by sharrow does not match the non-sharrow utility, sharrow attempts to retrieve data and print outpossible problematic expressions
to help debugging. See code here:activitysim/activitysim/core/simulate.py
Lines 800 to 809 in 29d12bc
However, currently the run will get stuck (no crash no response) in line 807
_sh_flow_load = sh_flow.load(sh_tree)
. Not sure if this is broken due to some recent changes.Also, for many example models, the sharrow
test
mode has only been run with small samples, and issues like this seem to get discovered especially when we run large samples (100% HH). This means when agencies adopt sharrow, we should probably recommend runningtest
mode with a large (enough) sample.To Reproduce
Steps to reproduce the behavior:
test
and run ABM3.Expected behavior
It would be nice to have line 807 working and return the problematic expressions.
The text was updated successfully, but these errors were encountered: