Skip to main content

Generate uniform 3D euler angles (ZYZ)

Project description

torch-so3

License PyPI Python Version CI codecov

Generate uniform 3D euler angles (ZYZ)

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.uniform_so3_sampling import get_uniform_euler_angles

angles = get_uniform_euler_angles(
    in_plane_step=4.0,  # units of degrees
    out_of_plane_step=6.0,
)
angles.shape  # (103500, 3)

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

torch_so3-0.1.1.tar.gz (323.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

torch_so3-0.1.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file torch_so3-0.1.1.tar.gz.

File metadata

  • Download URL: torch_so3-0.1.1.tar.gz
  • Upload date:
  • Size: 323.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for torch_so3-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fa7fd3b0bced338145ac40697ec11211f3033a3ed4a948375fc70994cf59e263
MD5 597a53b2f47ab09f0e63b4b2b746895b
BLAKE2b-256 86e53c475e20932d11aca45769e33f247576a24ed530ca39603c84c6bdfc31ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_so3-0.1.1.tar.gz:

Publisher: ci.yml on teamtomo/torch-so3

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file torch_so3-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: torch_so3-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for torch_so3-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 52cd34c665642bbbf07813af973a6826a9c376f646811fd43032b8e46025e94f
MD5 65d67793e66710cc0c2696fbe7fe527c
BLAKE2b-256 bed6d92320c7d0dfa42f90f5c3453c2bac33418a98a52eaed1c938880be1c763

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_so3-0.1.1-py3-none-any.whl:

Publisher: ci.yml on teamtomo/torch-so3

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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