Repository navigation
ENH: Restart control file; changelog for v1.3.0 - #34
Merged
Merged
Conversation
Every run writes output.restart_control (default restart.json) as soon as its output file is set up: the run's complete control, starting from the last frame of output.file and writing to a new, numbered output file (design.nc -> design.1.nc -> design.2.nc, run_009.nc -> run_010.nc), so the run never overwrites the file it continues from and `mutopopt restart.json` repeated chains jobs. A hand-written control file of the same name is not replaced. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The muGrid wheels have no MPI, and muGrid 1.6.0 raises instead of running serially under mpirun, so every MPI test errored. Compile muGrid and mpi4py against the runner's Open MPI (with PnetCDF for parallel NetCDF), and fail early if the build still lacks MPI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the restart control file and dates the v1.3.0 changelog (27Oct26). Supersedes #33.
Restart control file. As soon as the output NetCDF is set up, every run writes
output.restart_control(new key, defaultrestart.json). This is the run's complete control file with two changes:initial_density.sourceis set to this run'soutput.file, so the continuation starts from the last frame written there;output.fileis advanced to a new, numbered name: a number at the end of the name (after.,_or-) is incremented with its zero padding kept, otherwise.1is appended (design.nc→design.1.nc→design.2.nc,run_009.nc→run_010.nc).So a continuation never overwrites the file it reads, and repeating
mutopopt restart.jsonchains jobs.dump_every> 0 for runs that may be interrupted.null(automatic) staynull, so the next run makes those choices again.simulate_conduction.pyis unchanged.Tests. New
test/test_restart_control.py(numbering, contents and validity of the restart file, chaining, the overwrite guard); all of it passes. I also ran the chain twice up to the start of the optimization (design.nc → design.1.nc → design.2.nc). Locally, 8 optimizer tests fail on this branch and onmainalike, because the NuMPI in the venv is older than the required >0.15.2.Release. Requires muGrid 1.6.0 (muSpectre/muGrid#247), so release muGrid first.
🤖 Generated with Claude Code