PySM 3.4.4 is now available both on PyPI and on conda-forge. This release is mostly about extending the Sunyaev-Zeldovich model suite and making sure PySM works cleanly with NumPy 2.
The main addition is a new set of SZ presets:
tsz2: thermal SZ from the Agora simulations, based on the BAHAMAS hydrodynamical simulations, available atNside=8192tsz3: lensed thermal SZ from the Agora simulations, also atNside=8192tsz4: thermal SZ from HalfDome 0.1, generated with xgpaint and Battaglia16 profiles, with 11 realizations available throughtemplate_nameseeds100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120ksz2: kinetic SZ from the Agora simulations atNside=8192ksz3: lensed kinetic SZ from the Agora simulations atNside=8192
The published PySM documentation now includes the notebook I added to compare the WebSky and Agora SZ templates:
If you want the short reference page for these presets, see the SZ section in the models documentation:
https://pysm3.readthedocs.io/en/latest/models.html#sunyaevzeldovich-emission
On the compatibility side, PySM 3.4.4 adds NumPy 2 support by replacing the deprecated np.trapz call with numpy.trapezoid. This is the main change needed for users upgrading scientific Python environments to NumPy 2 while keeping PySM in their pipeline.
The full release notes are on GitHub: