Skip to content

mcpl_split drops USERVARS blocks a part does not use - #395

Merged
g5t merged 1 commit into
mainfrom
split-drops-unused-uservars
Oct 18, 2026
Merged

g5t merged 1 commit into
mainfrom
split-drops-unused-uservars

Conversation

@g5t

@g5t g5t commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator

With remove_unused_parameters, each part of a split instrument now also loses the USERVARS blocks declaring only names nothing in it mentions -- in its code, its components' code, or quoted in a parameter, the MCPL components' included. Before, the primary of an instrument kept the particle variables of whatever sample followed it, so the same primary spectrometer hashed differently for every sample declaring its own, and restage simulated it again for each. A block whose declarations can not be read is kept.

With remove_unused_parameters, each part of a split instrument now also
loses the USERVARS blocks declaring only names nothing in it mentions --
in its code, its components' code, or quoted in a parameter, the MCPL
components' included. Before, the primary of an instrument kept the
particle variables of whatever sample followed it, so the same primary
spectrometer hashed differently for every sample declaring its own, and
restage simulated it again for each. A block whose declarations can not
be read is kept.
@g5t
g5t merged commit e3495f7 into main Oct 18, 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