Skip to content

Commit 790cfae

Browse files
committed
fix(sawtooth): update API and regenerate references
- Update regenerate_sawtooth_refs.py to use new get_initial_state_and_post_processed_outputs API (step_fn only) - Regenerate sawtooth_references.json with latest main branch values Fixes failing CI tests after rebase to latest main.
1 parent 8d6f414 commit 790cfae

File tree

2 files changed

+17
-20
lines changed

2 files changed

+17
-20
lines changed

torax/_src/mhd/sawtooth/tests/regenerate_sawtooth_refs.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,9 @@ def calculate_sawtooth_crash_references() -> dict[str, Any]:
164164
runtime_params_provider=runtime_params_provider,
165165
)
166166

167-
# Get initial state
167+
# Get initial state (using new API that takes step_fn as main argument)
168168
initial_state, initial_post_processed_outputs = (
169169
initial_state_lib.get_initial_state_and_post_processed_outputs(
170-
t=torax_config.numerics.t_initial,
171-
runtime_params_provider=runtime_params_provider,
172-
geometry_provider=geometry_provider,
173170
step_fn=step_fn,
174171
)
175172
)
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"post_crash_temperature": [
3-
9.80214763867072,
4-
9.774495567770007,
5-
9.746821543811965,
6-
9.719125386103409,
7-
9.69140691196268,
3+
9.802147638670725,
4+
9.774495567770012,
5+
9.746821543811969,
6+
9.719125386103414,
7+
9.691406911962686,
88
8.179370745839305,
99
6.225896595777405,
1010
4.499999999999998,
@@ -17,22 +17,22 @@
1717
9.239980390152702e+19,
1818
9.214698668964295e+19,
1919
9.189416947775886e+19,
20-
8.817802446668299e+19,
21-
8.345056959984748e+19,
20+
8.817802446668297e+19,
21+
8.345056959984746e+19,
2222
7.921901446691185e+19,
2323
7.569816937949354e+19,
2424
7.2177324292075225e+19
2525
],
2626
"post_crash_psi": [
27-
9.778742408396024,
28-
11.342102036297204,
29-
14.360383604641752,
30-
18.737049105346237,
31-
24.378127742662265,
32-
31.058184699891584,
33-
38.12617379019407,
34-
44.844898859093725,
35-
50.74281519306403,
27+
8.245389337262555,
28+
9.864264965223013,
29+
12.989683251350234,
30+
17.521630165994587,
31+
23.36274579818155,
32+
30.278108291089445,
33+
37.58746532168118,
34+
44.522204962167564,
35+
50.597804202813315,
3636
55.72986584479574
3737
]
3838
}

0 commit comments

Comments
 (0)