Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

torch-so3

License PyPI Python Version CI codecov

Generate uniform sets of proper Euler angles (ZYZ format) over the SO(3) group using PyTorch. Note that Euler angles are returned in the order of $(\phi, \theta, \psi)$.

Examples

See the /examples directory for brief notebooks outlining the usage of the package.

Installation

Install via pip

pip install torch-so3

Install via source by first cloning the repository then running.

git clone https://github.com/teamtomo/torch-so3.git
cd torch-so3
pip install -e .

And for development and testing use

pip install -e ".[dev,test]"

For those contributing make sure to run tests before, and to adhere to the pre-commit hooks.

python -m pytest
pre-commit run

Usage

A basic example of generating uniform Euler angles in 4.0 and 6.0 degree increments across the entire SO(3) group is shown below.

from torch_so3 import get_uniform_euler_angles

angles = get_uniform_euler_angles(
    psi_step=4.0,  # units of degrees
    theta_step=6.0,
)
angles.shape  # (103320, 3)

Metadata

Release files for torch-so3 0.6.0rc2

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

Source distribution (sdist)

Source distribution for torch-so3 0.6.0rc2
File Size Uploaded
torch_so3-0.6.0rc2.tar.gz 18.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for torch-so3 0.6.0rc2
File Interpreter ABI Platform
torch_so3-0.6.0rc2-py3-none-any.whl Python 3 none any Details

Total release size: 33.7 kB

Release files / torch_so3-0.6.0rc2.tar.gz

Download URL torch_so3-0.6.0rc2.tar.gz
Size 18.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ed8b967160f83e76b54ac6bc1acc550ea603e883496314f93268f4ae407fdd63
BLAKE2b-256 checksum
How to use checksums
e7a2c93acb70d947b6a788b9a1dcf71ca53875ac77a2aba3d80474adfec5c450
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 11, 2026.

Transparency log

Release files / torch_so3-0.6.0rc2-py3-none-any.whl

Download URL torch_so3-0.6.0rc2-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2baa0132df3a41fc7578f0a667510780f310a78563862a37b5b3fe0147e68a23
BLAKE2b-256 checksum
How to use checksums
3e4bd550f5a2b9d33c82e5d1196b264ab35259c81858240c6ab0a458acbbb12e
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 11, 2026.

Transparency log
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