transrot
Description
transrot is a lightweight Python package to calculate the translation vector and rotational matrix between two sets of 3D coordinates. This transformation can be applied to another set of coordinates
Installation
pip install transrot
How To?
from transrot import TransRot
import numpy as np
# Get your (n, 3) array of coordinates
coords1 = np.random.random((5, 3))
coords2 = np.random.random((5, 3))
coords3 = np.random.random((5, 3))
# Initialize the class
transformation = TransRot(
coords1=coords1,
coords2=coords2
)
# Calculate rotational matrix and translational vector that aligns coords1 to coords2
transformation.fit()
# Transform a set of coordinates with the calculated transformation
transformed_coords = transformation.transform(coords3)
Issues
If you have found a bug, please open an issue on the GitHub Issues.
Funding
This project received funding from Marie Skłodowska-Curie Actions. It was developed in the Computational Biophysics Group of Saarland University.
Metadata
Release files for transrot 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| transrot-0.0.1.tar.gz | 4.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| transrot-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / transrot-0.0.1.tar.gz
| Download URL | transrot-0.0.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ffc2413c2994a25df0f403009980d4fb1e054e81f64a425050e7ec4bec6d480
|
|
BLAKE2b-256 checksum How to use checksums |
543ec2c839aa421176df1c93928997551ef0d858a273a0c4c0f25300d59f4bb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.14
|
Release files / transrot-0.0.1-py3-none-any.whl
| Download URL | transrot-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a6ee536e1b251f75399c7bacac56d43682c2c661b2ac1fa789ddc61a2c566be
|
|
BLAKE2b-256 checksum How to use checksums |
5d82b480144d8c26d5572e692e290be874334e13d7a58f9f4e3e15986fa23545
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.14
|
Security for transrot 0.0.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.