Skip to content

Commit

Permalink
fix sharrow skip in simple simulate
Browse files Browse the repository at this point in the history
  • Loading branch information
jpn-- committed Apr 4, 2024
1 parent 38fb23a commit 396e618
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions activitysim/core/simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,8 @@ def eval_utilities(
This is meant to give the same result, but allows for some optimizations
or preprocessing outside the sharrow framework (e.g. to run the Python
based transit virtual path builder and cache relevant values).
fastmath : bool, default True
Use fastmath for sharrow compiled code.
sharrow_settings : SharrowSettings, optional
Settings for sharrow. If not given, the default settings are used.
Returns
-------
Expand All @@ -595,7 +595,7 @@ def eval_utilities(
if spec_sh is None:
spec_sh = spec

if locals_d is not None and "disable_sharrow" in locals_d:
if sharrow_settings is not None and sharrow_settings.skip:
sharrow_enabled = False

if sharrow_enabled:
Expand Down

0 comments on commit 396e618

Please sign in to comment.