feat(make_sofq): add optional mcweights attribute to homogeneous_scatterer
Summary of Changes
- Added optional
mcweightsparameter tomake_sofq().- If provided,
mcweightsare written to the<homogeneous_scatterer>tag. - By default,
mcweightsattribute is omitted (backward compatible).
- If provided,
- Updated
vanadium_scatterer():- Default mode is now isotropic kernel without
mcweights. - Added support for optional
mcweightsin isotropic mode. - Preserved phonon mode behavior with explicit DOS input.
- Default mode is now isotropic kernel without
- No other functionality was changed.
Checklist
-
The MR has a clear and concise title -
Code is self-documented and follows style guidelines. -
Automated tests are written and pass successfully. -
Regression tests (e.g. manually triggered system tests, manual GUI/tool tests, ...) are performed to make sure the MR does not break anything (when applicable) -
Readme file is present and up-to-date.
Documentation Updates
- Internal docstrings updated for
make_sofq()andvanadium_scatterer(). - External documentation not impacted.
Additional Notes
- Both changes are backward compatible.
- These updates make it possible to configure absorption, scattering, and transmission weights consistently across scatterer types.