Skip to content

Commit c955b0e

Browse files
committed
Adding HeatChargeSimulation samples to the sample script and updater test
1 parent a2fbe91 commit c955b0e

13 files changed

+1272
-8
lines changed

scripts/sample.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77

88
sys.path.append("tests")
99

10-
from utils import SIM_FULL
10+
from utils import SAMPLE_SIMULATIONS
1111

12-
FPREFIX_SIMULATION_SAMPLE = join("tests", "sims", "simulation_sample")
12+
FPREFIX_SIMULATION_SAMPLE = join("tests", "sims")
1313

14-
# Store a simulation sample as json and hdf5
15-
SIM_FULL.to_json(FPREFIX_SIMULATION_SAMPLE + ".json")
16-
SIM_FULL.to_hdf5(FPREFIX_SIMULATION_SAMPLE + ".h5")
14+
for key, sim in SAMPLE_SIMULATIONS.items():
15+
# Store a simulation sample as json and hdf5
16+
sim.to_json(join(FPREFIX_SIMULATION_SAMPLE, key) + ".json")
17+
sim.to_hdf5(join(FPREFIX_SIMULATION_SAMPLE, key) + ".h5")

tests/sims/full_charge.h5

7.12 KB
Binary file not shown.

0 commit comments

Comments
 (0)