Skip to content

Releases: mccode-dev/mccode-antlr

v0.15.2

03 Jul 20:11
@g5t g5t
b914cf6
Compare
Choose a tag to compare

What's Changed

  • [Ref] use one subprocess interface during Instr translating by @g5t in #152

Full Changelog: v0.15.1...v0.15.2

v0.15.1

03 Jul 14:28
@g5t g5t
e20245b
Compare
Choose a tag to compare

What's Changed

  • [Fix] issue reconstituting Op/Value objects by @g5t in #150

Full Changelog: v0.15.0...v0.15.1

v0.15.0

02 Jul 19:49
@g5t g5t
d138149
Compare
Choose a tag to compare

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

23 Jun 12:35
@g5t g5t
Compare
Choose a tag to compare

What's Changed

  • Compilation flag fallback by @g5t in #141
  • [Fix] fallback subprocess calls by @g5t in #142

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

18 Jun 10:33
@g5t g5t
3c9351b
Compare
Choose a tag to compare

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

17 Jun 03:36
@g5t g5t
b9cca0e
Compare
Choose a tag to compare

What's Changed

  • Add multiple-source INHERIT and EXTEND 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

v0.11.0

05 May 09:54
@g5t g5t
8905d49
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.10.3...v0.11.0

v0.10.3

07 Apr 13:50
@g5t g5t
ecd6093
Compare
Choose a tag to compare

What's Changed

  • Update config_default.yaml by @g5t in #123
  • [Add] McCode dat file structured array, other minor improvements by @g5t in #125
  • Fix mpirun issue by @g5t in #126

Full Changelog: v0.10.2...v0.10.3

v0.10.2

26 Mar 08:44
@g5t g5t
2e8a71e
Compare
Choose a tag to compare

What's Changed

  • [Fix] ABSOLUTEMETADATA issue by @g5t in #121

Full Changelog: v0.10.1...v0.10.2

v0.10.1

18 Feb 18:58
@g5t g5t
d271b32
Compare
Choose a tag to compare

What's Changed

  • Enable switch for McXtrace RESTORE_XRAY define by @willend in #119

Full Changelog: v0.10.0...v0.10.1