Skip to content

Commit ad02189

Browse files
sbryngelsonclaude
andcommitted
Fix inconsistent t_step_start access in run_restart Phase 1
Phase 1 used orig.get('t_step_start', 0) to compute t_step_save, while Phase 2 and the mid_step guard both use orig['t_step_start'] (hard key access). t_step_start is always present (provided by BASE_CFG), so the .get() default silently produces a wrong t_step_save if the key is ever absent. Use consistent direct access throughout. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c2ee651 commit ad02189

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

toolchain/mfc/test/case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def run_restart(self, targets, gpus):
159159

160160
# Phase 1: Run to midpoint (generates restart data)
161161
self.params = {**orig, 't_step_stop': mid_step,
162-
't_step_save': mid_step - orig.get('t_step_start', 0)}
162+
't_step_save': mid_step - orig['t_step_start']}
163163
self.create_directory()
164164
result1 = self.run(targets, gpus)
165165
if result1.returncode != 0:

0 commit comments

Comments
 (0)