Skip to content

fix: Preserve the saved simulation step counter when reading HDF5 - #384

Open
clapeyre wants to merge 1 commit into
python-hydro:mainfrom
clapeyre:fix-hdf5-step-count
Open

clapeyre wants to merge 1 commit into
python-hydro:mainfrom
clapeyre:fix-hdf5-step-count

Conversation

@clapeyre

@clapeyre clapeyre commented Oct 5, 2026

Copy link
Copy Markdown

Keep the nsteps attribute in a separate variable (not n, which is used in other loops) so iteration over state variable names cannot replace it before assigning Simulation.n.

Add a NumPy simulation save/read regression test that verifies the step count, time, and density after three driver-managed steps.

Keep the nsteps attribute in a separate variable so iteration over state
variable names cannot replace it before assigning Simulation.n.

Add a NumPy simulation save/read regression that verifies the step count,
time, and density after three driver-managed steps.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant