Skip to main content

"PySM generates full-sky simulations of Galactic emissions in intensity and polarization"

Project description

CI Tests Documentation Status PyPI Conda Astropy JOSS

PySM 3

PySM generates full-sky simulations of Galactic emissions in intensity and polarization relevant to CMB experiments. It is a large refactor of PySM 2 focused on reducing memory usage, improving performance and run in parallel with MPI.

See the documentation at

See changes in CHANGES.rst in the repository.


See the documentation

  • Install with pip install . or with pip install .[test] to also install the requirements for running tests

  • Optionally, if you have an MPI environment available and you would like to test the MPI capabilities of PySM, install mpi4py and libsharp, check the documentation link above for more details.

  • Check code style with tox -e codestyle

  • Test with pytest or tox -e test

  • Building docs requires pandoc, not the python package, the actual pandoc command line tool, install it with conda or your package manager

  • Build docs locally with tox -e build_docs


For any question or issue with the software open an issue.


  • Tag the new version with git

  • pip install build --upgrade

  • python -m build --sdist --wheel .

  • twine upload dist/*

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysm3-3.3.2.tar.gz (5.8 MB view hashes)

Uploaded source

Built Distribution

pysm3-3.3.2-py3-none-any.whl (53.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page