Repository navigation
Changes in McStas/McXtrace 3.9.2
A bug-fix release covering everything since the previous "announced" release, 3.9.0, including minor changes already shipped quietly in 3.9.1 on conda-forge. For the main new features of the 3.9 series, see the 3.9.0 release notes.
Highlights
- OFF/PLY geometry library overhauled: polygons can now have any number of corners, and several geometry bugs are fixed: gravity with OFF samples, double hits on shared edges, and McXtrace
Mirrorin OFF mode, which did not reflect. Faces in the geometry file can now also carry their own properties. By @willend. Guide_anyshapenow reads per-face coatings (m,alpha,W, ...) directly from the OFF/PLY file with the newfile_coatings=1option. This replacesGuide_anyshape_r, which moves to the obsolete components. By @willend.- ESS Test Beamline (TBL) in
ESS_butterfly: selecting sector W, beamline 11 automatically switches to a TBL mode that views both cold wings of the moderator. Consolidated by @willend with Claude from the TBL team's local version. - Correct neutron ID and user variables in Union absorption loggers: the
Monitor_nD-based Union loggers now record the real neutron ID anduser0–user9values instead of random numbers. By @tkittel. - SasView samples combine with Union and more: instruments using a SasView sample together with
Union_master,Refractoror the Bispectral mirrors now compile. By @tkittel. mcstas-chopper-libupdated to v4.2.3: the external chopper componentsNXdisk_chopper,Masked_ESS_butterflyandPolygon_ESS_butterflynow show up properly inmcdoc. By @g5t and @willend.- McXtrace data files found again on Debian/Ubuntu package installs when instruments are run directly, without
mxrun. By @willend.
What's Changed
Common to McStas and McXtrace
Geometry (OFF/PLY files)
- Overhauled OFF/PLY geometry library: no limit on the number of corners per polygon, faces can carry their own properties, and fixes for gravity mode with OFF samples, double hits on shared edges and corners, faces whose first corners lie on a line, and more robust file reading. Checked against an independent reference calculation and the example instruments. By @willend in #2755
- Clearer rules for how the library reports intersections, with all users of it in McStas and McXtrace checked, by @willend in #2755
Running pygen-based simulations
Installation, platforms and packaging
- McXtrace binaries now find their data files when run directly on a Debian/Ubuntu package install (where
$MCXTRACEis not set), by @willend in #2761 (fixes #2759 from @farhi) - Debian/Ubuntu packages now declare all their dependencies themselves, so installing single packages works without the full "suite" metapackages.
mcstas-compsnow depends on MCPL and NCrystal, andmcxtrace-compson MCPL. By @willend in #2761 - More reliable cross-compilation of the Windows installers by @willend in #2751
- Release builds are now packaged as a single archive by @willend in #2758
- Release-notes updates by @willend in #2749, #2750
- For contributors: new CI test of Debian/Ubuntu package builds and of running binaries directly, by @willend in #2761. Basic CI tests are faster because plots are now made only on request, by @willend in #2763
McStas only
Components
Guide_anyshape: newfile_coatings=1option to readm,alpha,W,R0andQcper face from the OFF/PLY file.Guide_anyshape_ris now obsolete (it still works, with a deprecation warning): useGuide_anyshape(file_coatings=1, ...)instead. By @willend in #2755ESS_butterfly: automatic Test Beamline (TBL) mode for sector W, beamline 11, viewing both cold wings of the moderator. AI-assisted (Claude), by @willend in #2757Vertical_Bender: reflections on the curved walls were missed without gravity, so much less was transmitted than expected. Fixed by @tkittel in #2756Union_master,Refractor,Mirror_Curved_BispectralandMirror_Elliptic_Bispectralcan now be combined with SasView samples in one instrument. Previously this failed to compile because of a clash with the nameI(fixes #2546). By @tkittel in #2752mcstas-chopper-libupdated to v4.2.3:NXdisk_chopper,Masked_ESS_butterflyandPolygon_ESS_butterfly(with their test instruments) now render correctly inmcdoc, by @mccode-registrar[bot] in #2764 (upstream fixes by @willend, released by @g5t)
Union
Union_abs_logger_nD,Union_abs_logger_nD_scintillator,Union_abs_logger_1D_space_eventandUnion_abs_logger_eventnow pass the real neutron toMonitor_nD. The neutron ID and user-variable columns previously held random values. By @tkittel in #2760
McXtrace only
Full Changelog: v3.9.0...v3.9.2