Skip to main content

soma

CI Documentation Status PyPI

soma (Simons Observatory Map-based Analysis) is a set of companion tools for use with the pixell library.

This library is in active early development and its API will likely change significantly. It is meant to replace msyriac/orphics and integrate in modules from other libraries that supplement pixell.

Installation

To install from a local checkout, including the development dependencies:

git clone https://github.com/simonsobs/soma.git
cd soma
[uv] pip install -e ".[dev]"

A PyPI instance will be deployed once development is mature.

Usage

import somapy

print(somapy.__version__)

Runnable, pre-executed notebooks live in examples/; each is generated from a plain-Python builder script beside it.

Development

pytest              # run the test suite
ruff check .        # lint
ruff format .       # format

Documentation is built with Sphinx and hosted on Read the Docs:

[uv] pip install -e ".[docs]"
make -C docs html        # open docs/_build/html/index.html
make -C docs livehtml    # live preview with automatic rebuilds

Attribution

soma bundles one external data product: src/somapy/planck_dust_equ.fits, the sky backdrop that somapy.io.plot_footprints paints its globes with. It is a derived version of the Planck Commander thermal-dust map, rotated from Galactic to equatorial coordinates, band-limited and resampled onto a 0.5° CAR grid (see the footprints docs).

If you publish a figure made with it, please cite the source map:

Planck Collaboration X, 2016, Planck 2015 results. X. Diffuse component separation: Foreground maps, A&A 594, A10 (arXiv:1502.01588)

and include the Planck acknowledgement:

Based on observations obtained with Planck (http://www.esa.int/Planck), an ESA science mission with instruments and contributions directly funded by ESA Member States, NASA, and Canada.

The exact product is COM_CompMap_dust-commander_0256_R2.00.fits, column 0 (I_ML — dust intensity at 545 GHz in µK_RJ, HEALPix Nside 256, 60′ FWHM, PROCVER = DX11D), from the Planck Legacy Archive, also mirrored at IRSA.

Metadata

Release files for somapy 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for somapy 0.0.3
File Size Uploaded Provenance Actions
somapy-0.0.3.tar.gz 1.1 MB With provenance Details for somapy-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for somapy 0.0.3
File Interpreter ABI Platform Actions
somapy-0.0.3-py3-none-any.whl Python 3 none any Details for somapy-0.0.3-py3-none-any.whl

Total release size: 2.1 MB

Release files / somapy-0.0.3.tar.gz

Download URL somapy-0.0.3.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
82d2f1ca07353e5588805d36af5a4d4a94177326e78b3ebcc4e92e429ad3fbdc
BLAKE2b-256 checksum
How to use checksums
48aa70ef0b7068bbdd008e477264cf71a36d5a9843d21d03eb781939145aa4a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Release files / somapy-0.0.3-py3-none-any.whl

Download URL somapy-0.0.3-py3-none-any.whl
Size 1.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ebb9a821ea140dff26691c71d8427f9a65f21678a5a2e30f21b027667c16cbfa
BLAKE2b-256 checksum
How to use checksums
df708202c4c8e7c75288a6ad0b8b428b2725e166490e4731ee48ed1938ce3cc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Security for somapy 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for somapy-0.0.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page