Releases: mccode-dev/mccode-antlr
v0.15.2
v0.15.1
v0.15.0
What's Changed
- [Add] in-file path specification for HDF5 loading by @g5t in #144
- [Add] SI prefix parser for select mcrun/mxrun input parameters by @g5t in #146
- [Feat] Add to_ from_ json and msgpack via msgspec by @g5t in #148
Full Changelog: v0.14.0...v0.15.0
JSON serialization
Round-trip conversion to JSON seems to work and is lightly tested. More testing may reveal issues, however.
v0.14.0
What's Changed
An optional dependency on mcpl
is added to support better interoperability with MCPL >= 2.2.0
.
Module-global registries have been removed, in favor of using the Flavor
enumeration to ensure
inclusion of the 'default' registry. This likely requires modification of any code that utilizes mccode-antlr
.
Full Changelog: v0.13.0...v0.14.0
v0.13.0
What's Changed
- [Add] env variable specified component search paths by @g5t in #137
- [Ref] module global registries to reduce git reliance by @g5t in #138
- More robust use of the
Flavor
enumerated value by @g5t in #140
It is now possible to specify local component, data file, and library search paths for mcstas-antlr
, mcxtrace-antlr
, mcrun-antlr
, and mxrun-anltr
through the environment variables ${MCCODEANTLR_MCSTAS__PATHS}
and ${MCCODEANTLR_MCXTRACE__PATHS}
.
These are likely to be most-useful if you already have, e.g., McStas installed from Conda-Forge, to avoid downloading file(s) which are already present on your system. In such a case something like the following may be useful
~$ micromamba create -n mcstas -c conda-forge mcstas mccode-antlr
~$ micromamba activate mcstas
(mcstas) ~$ export MCCODEANTLR_MCSTAS__PATHS="${MCSTAS}"
(mcstas) ~$ export MCCODEANTLR_MCCODE_POOCH__TAG="v$(mcrun --version)"
(mcstas) ~$ mcstas-antlr some.instr
Setting the tag used for fetching remote content is not necessary, but should hopefully prevent any clashes if a required file is missing.
Use of some functions from within Python will require slight modification due to signature changes.
Notably, the use of Assembler
will now require that the 'flavor' of the McCode language being targeted is specified as one of the enumerated Flavor
values.
You can from mccode_antlr import Flavor
to get access to Flavor.MCSTAS
and Flavor.MCXTRACE
.
Full Changelog: v0.12.0...v0.13.0
v0.12.0
What's Changed
- Add multiple-source
INHERIT
andEXTEND
in.comp
and.instr
grammars by @g5t in #131 - [Update] registry file repository url changed by @g5t in #133
- Update url in pyproject.toml by @g5t in #134
- Suggested edits for cli/commands due to incoming upstream mccode changes by @willend in #129
- Update README.md by @g5t in #135
Full Changelog: v0.11.0...v0.12.0