feat: add dice input generation and player routines for NVT/NPT simulations

This commit is contained in:
2026-03-14 18:28:15 -03:00
parent 53eb34a83e
commit 9f22304dd8
10 changed files with 534 additions and 51 deletions

View File

@@ -12,9 +12,10 @@ class TestStateHandler:
@pytest.fixture
def player_config(self) -> PlayerConfig:
return PlayerConfig(
opt=True,
type="both",
mem=12,
maxcyc=100,
max_cyc=100,
switch_cyc=50,
nprocs=4,
ncores=4,
dice=DiceConfig(
@@ -87,7 +88,7 @@ class TestStateHandler:
state_handler.save(state)
different_config = player_config.model_copy(update={"opt": False})
different_config = player_config.model_copy(update={"max_cyc": 200})
retrieved_state = state_handler.get(different_config)
@@ -106,7 +107,7 @@ class TestStateHandler:
state_handler.save(state)
different_config = player_config.model_copy(update={"opt": False})
different_config = player_config.model_copy(update={"max_cyc": 200})
retrieved_state = state_handler.get(different_config, force=True)