Skip to content

Releases: mccode-dev/mccode-antlr

v0.17.0

07 Jan 11:28
@g5t g5t
3d343e5

Choose a tag to compare

v0.16.2

05 Jan 17:04
@g5t g5t
17fb5f1

Choose a tag to compare

What's Changed

  • [Add] Dependabot by @g5t in #166
  • Bump actions/upload-artifact from 4 to 6 by @dependabot[bot] in #167
  • Bump actions/checkout from 4 to 6 by @dependabot[bot] in #168
  • Bump actions/setup-python from 5 to 6 by @dependabot[bot] in #169
  • Bump actions/download-artifact from 4 to 7 by @dependabot[bot] in #170
  • [Ref] set and unset command line tools should now modify the config file on disk by @g5t in #171
  • [Add] explicit list scanned paramter values by @g5t in #173
  • [Fix] UnaryOp constructor call by @g5t in #175

New Contributors

Full Changelog: v0.16.1...v0.16.2

v0.16.1

16 Dec 16:42
@g5t g5t
f2d1ca7

Choose a tag to compare

What's Changed

  • [Add] JSON deserializer for mcstas-antlr/mcxtrace-antlr by @g5t in #162
  • [Fix] too-lax component file location by @g5t in #163
  • [Fix] sin_value typo, [Add] tests by @g5t in #165

Full Changelog: v0.16.0...v0.16.1

v0.16.0

13 Dec 19:23
@g5t g5t
5a7f11a

Choose a tag to compare

What's Changed

  • Ensure (re-)init of RNG at top of INITIALIZE by @willend in #154
  • [Fix] Windows path flag parsing by @g5t in #156
  • Make test utilities available via the installed module by @g5t in #158

Full Changelog: v0.15.2...v0.16.0

v0.15.2

03 Jul 20:11
@g5t g5t
b914cf6

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

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

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

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

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

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