Switch three-gigawatt stability test to auto rods

This commit is contained in:
Codex Agent
2025-11-23 11:38:46 +01:00
parent 5f53340f17
commit 3d1fbb20c4

View File

@@ -181,8 +181,7 @@ def test_partially_inserted_rods_hold_near_three_gw():
reactor = Reactor.default()
state = reactor.initial_state()
reactor.shutdown = False
reactor.control.manual_control = True
reactor.control.rod_fraction = 0.4
reactor.control.set_manual_mode(False)
reactor.primary_pump_active = True
reactor.secondary_pump_active = True
reactor.primary_pump_units = [True, True]
@@ -190,11 +189,11 @@ def test_partially_inserted_rods_hold_near_three_gw():
reactor.generator_auto = True
reactor.step(state, dt=1.0, command=ReactorCommand(generator_units={1: True}))
for _ in range(120):
for _ in range(180):
reactor.step(state, dt=1.0)
assert 2_000.0 < state.core.power_output_mw < 4_000.0
assert 500.0 < state.core.fuel_temperature < 800.0
assert 2_500.0 < state.core.power_output_mw < 3_500.0
assert 0.05 < reactor.control.rod_fraction < 0.9
def test_generator_spools_and_powers_pumps():