Skip to content

Commit 74f7879

Browse files
jpn--Copilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 9aec46f commit 74f7879

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

activitysim/abm/test/test_misc/test_trip_scheduling_choice.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,12 @@ def test_run_trip_scheduling_choice(model_spec, tours, skims, locals_dict):
288288
assert out_tours[tsc.IB_DURATION].mask(in_tours[tsc.HAS_IB_STOPS], 0).sum() == 0
289289

290290
# confirm explicit chunking is supported and doesn't affect results
291+
state.settings.chunk_training_mode = "explicit"
292+
291293
model_settings_explicit_chunk = tsc.TripSchedulingChoiceSettings(
292294
**{
293295
"SPEC": "placeholder.csv",
296+
"explicit_chunk": 2,
294297
"compute_settings": {
295298
"protect_columns": ["origin", "destination", "schedule_id"]
296299
},
@@ -299,7 +302,7 @@ def test_run_trip_scheduling_choice(model_spec, tours, skims, locals_dict):
299302
out_tours_chunked = tsc.run_trip_scheduling_choice(
300303
state,
301304
model_spec,
302-
tours,
305+
in_tours.copy(deep=True),
303306
skims,
304307
locals_dict,
305308
trace_label="PyTest Trip Scheduling",

0 commit comments

Comments
 (0)