
Installation instructions
- For McStas go to The McStas install page on GitHub
- For McXtrace go to The McXtrace install page on GitHub
What’s Changed
Main new developments:
Common McStas and McXtrace developments:
- Up to 10
USERVARSsupported withMonitor_nD(nameduser0,...,user9) - Qt5 -> Qt6 across the package and dependencies
- Bugfix: Fix of rare visualisation bug in
mcdisplay/mxdisplay(e.g. box was not allowed as a comp name) - Doc improvements:
mcdoc/mxdoccan render.texand.mdin addition to.html- Example instruments come with an in-repo
README.mdgenerated via this mechanism - See e.g. McStas BNL_H8 or McXtrace ESRF ID01
- CI/test improvements:
McStas specific developments:
- Integrated support for KDSource
- New component
KDSource - For usage details, see example instrument
Test_KDSourceand the KDSource documentation website - Available as automatic dependency on
conda-forgebased installations (including macOS and Windows ‘installers’ - Not available as .deb package on Debian systems but may function by installing via pip.
Recommendation: Just useconda-forge.
- New component
- Pulse-length adjustment available for
ESS_butterfly- Handled via specifically named instrument input parameter and
DEPENDENCYline - See example instrument
ESS_butterfly_Adjustable_Pulse
- Handled via specifically named instrument input parameter and
PowderNnow supportsNCrystalcfg-strings.- Forwards request to
NCrystalthat populates datastructures without intermediate.laz/.laufiles - See example instrument Test_Powders –
comp=0mode
- Forwards request to
- Bugfixes:
- Fix to Union, orientation of loggers wrt. master comp
- Bugfixes to recently added improved Union mesh
- Contributions from NBI/KU:
Inhomogenous_incoherent_processin Union from @Lomholy, (via ‘tinyexpr’ string-expression inputs) – see rel. test instrument- New spinwave comp
SpinWave_BCOfrom @SSBNS – see rel. test instrument - ESS KVASIR instrument proposal – backend instrument with MCPL input from BIFROST optic. @AmalieFalkenberg. Includes Jupyter notebook in McStasScript syntax.
- McStas component manual uses
.texsnippets from generated via componentsmcdoc
McXtrace specific developments:
- Much improved Union subsystem for McXtrace by @ebknudsen. Makes use of Xraylib for Compton and Rayleigh scattering models.
- Test instruments for the new Union processes, both from @ebknudsen
- PowderCompton_union – Compton scattering and powder diffraction
- Test_KN_Comp_Rayl_union – test instrument using Klein-Nishina, Rayleigh, or Compton
scattering processes.
New Contributors
- @SSBNS made their first contribution in #2373
- @AmalieFalkenberg made their first contribution in #2345
Best regards on behalf of McStas/McXtrace,
Peter Kjær Willendrup
Forskningsingeniør, Specialkonsulent
DTU Physics



