Skip to content

Sim dat extra header keys - #416

Merged
g5t merged 2 commits into
mainfrom
sim-dat-extra-header-keys
Nov 25, 2026
Merged

g5t merged 2 commits into
mainfrom
sim-dat-extra-header-keys

Conversation

@g5t

@g5t g5t commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Fixes dat and sim file loading for changes in mccode-dev/McCode#3196.

g5t added 2 commits November 25, 2026 14:08
read_mccode_sim took every line after Directory as a parameter, so the
Nodes line from MPI runs, and the Merged_from lines mcmerge adds
(mccode-dev/McCode#3196), became parameters and were written back as
Param lines. Only Param lines are parameters now; other keys are kept,
in file order, in SimFileSimulation.extra, written back after Directory,
and combined by keeping each value once.

read_mccode_dat kept only the last Merged_from line and dropped it on
write. Merged_from is now read as a list, written after Directory along
with Nodes, and combined by keeping each value once.
As mcmerge does: combined runs whose Nodes differ (absent is one node)
have no single node count, so the key is dropped rather than raising
'Incompatible values' (.dat) or listing both counts (.sim).
@g5t
g5t merged commit 9ea0340 into main Nov 25, 2026
14 checks passed
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