Skip to content

extract: --strip-metadata writes the .instr files without METADATA - #411

Merged
g5t merged 1 commit into
mainfrom
extract-strip-metadata
Nov 17, 2026
Merged

g5t merged 1 commit into
mainfrom
extract-strip-metadata

Conversation

@g5t

@g5t g5t commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Classic McStas cannot parse instrument-level METADATA, and instance METADATA written for another tool -- niess puts a provenance block on every component -- is noise to a McStas user and is compiled into the binary.

--strip-metadata clears both on a copy of the instrument before the .instr hierarchy is written; component-definition METADATA in the .comp files is kept.

For BIFROST this halves bifrost.instr (2184 to 1119 lines), and the bundle still compiles and runs with McStas 3.10.2.

Classic McStas cannot parse instrument-level METADATA, and instance
METADATA written for another tool -- niess puts a provenance block on
every component -- is noise to a McStas user and is compiled into the
binary. --strip-metadata clears both on a copy of the instrument before
the .instr hierarchy is written; component-definition METADATA in the
.comp files is kept. For BIFROST this halves bifrost.instr (2184 to
1119 lines), and the bundle still compiles and runs with McStas 3.10.2.
@g5t
g5t merged commit e289836 into main Nov 17, 2026
13 of 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