Spatial Transformation
Installation
TL;DR
python -m venv .venv
source .venv/bin/activate
git clone git@github.com:TrafoToolkit/spatial_transformation.git
cd spatial_transformation
pip install -e .
Usage
Basic example:
from transform.position_3d import Position3D
from transform.rotation_3d import Rotation3D
from transform.transform_3d import Transform3D
p_0 = Position3D.from_cartesian(30, 450, 20, Unit.MM_DEG)
o_0 = Rotation3D.from_EULER_INTRINSIC_XYZ(210, 120, 140, Unit.MM_DEG)
sys_R = Transform3D(p_0, o_0)
print(p_0)
Development
This project is structured according to the guidelines of hatchling 1.7.
Setup
In order to install the requirements for development, install the dependencies from the requirements.txt:
This project uses pre-commits. To setup this up, do the following:
# With activated virtual environment
pip install -r requirements.txt
pre-commit install
This will install the pre-commit hook. When trying the next commit, the tools for the code check will be installed. Further commits will not need this setup step.
This will apply the checks to all files in the repository. During a commit only the diff is style-checked, the commit is aborted, if style / format is not according to the configuration.
In order to run the files over all git-tracked files, invoke:
pre-commit run --all
Testing
Testing requires you to install pip packages pytest pytest-cov
Run bash tools/runtest.sh MARKERNAME for running the tests in test/ directory. MARKERNAME can be
randomizedfor randomized tests using a random number generator with seed 0hardcodedfor testcases that test if an operation generates a known error, so mathematical problems can be found- or omitted for running all testcases
Coverage reports will be generated into htmlcov/
Documentation
For building the documentation you need pip packages Sphinx sphinx-autoapi and you need to install Sphinx with apt-get install python3-sphinx.
Run bash tools/generate_classdiagrams.sh for generating classdiagrams in docs/classdiagrams/ using pyreverse.
[WIP] Run bash tools/build_docs.sh for auto-generating documentation in docs/build/ using sphinx.
Metadata
Release files for spatial-transformation 1.1.0
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 | Actions |
|---|---|---|---|---|
| spatial_transformation-1.1.0.tar.gz | 457.6 kB | Without provenance | Details for spatial_transformation-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spatial_transformation-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for spatial_transformation-1.1.0-py3-none-any.whl |
Total release size: 491.2 kB
Release files / spatial_transformation-1.1.0.tar.gz
| Download URL | spatial_transformation-1.1.0.tar.gz |
|---|---|
| Size | 457.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9fd4213c10db7cd91b2d93eb884f5ec5160380274b35f1e15e7c8c0f774b560b
|
|
BLAKE2b-256 checksum How to use checksums |
185698b45eafdfcf35669b44f1bd10c572fda0b7501ba4ed2cb46518fe288d92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.7
|
Release files / spatial_transformation-1.1.0-py3-none-any.whl
| Download URL | spatial_transformation-1.1.0-py3-none-any.whl |
|---|---|
| Size | 33.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9513cd907e79cb7bbf5240969607478c26da847cb07b91bcab51cf65cad81b72
|
|
BLAKE2b-256 checksum How to use checksums |
71d45e3584bc650f11bec2bf79a2d35af7a6af8447731c2715c5565de7e7cb37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.7
|
Security for spatial-transformation 1.1.0
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.