Examples
The repository of the tool contains small example projects, in
example_repos/, which are tested in its CI
(see Development):
ExInstrBasic: classic.instrfiles, with a main instrument and two modes (FOOandBAR).ExInstrIncludes: classic.instrfiles using shared C code fromincludes/and an entire instrument pulled in fromsnippets/via%include.ExPyGenerated: McStasScript files generated withgeneratepy(i.e.mcstas-pygen) from the main instrument ofExInstrBasic, with a main instrument and one mode (SomeMode).ExPyHelpers: a small hand-written McStasScript instrument (source, guide and monitors), with a main instrument and one mode (Long) built from code shared in the helper modulescommon.py,geometry.pyandmonitors.py. It also shows how to add%Exampletests with other parameter values than the defaults.ExInstrLocalFiles: classic.instrfile using a project-specific component (localcomps/ExCountMonitor.comp, with its own C library) and an NCrystal material file (localdata/ExAlLike.ncmat).ExPyLocalFiles: the same instrument, as hand-written McStasScript code.ExPyExtra: a small hand-written McStasScript instrument, with an analysis package and a script inextra/, and tests inextra_pytests/which use both (one of them runs a short simulation).