AngPoly3D
AngPoly3D is a Python package to calculate the angle between a reference orientation and a polyhedron orientation considering the polyhedron's point group symmetry.
The calculated angle is the minimum of all angles after applying all the equivalent orientations on the orientation of a polyhedron according to the formula prescribed in the paper by Sharon C. Glotzer et al.
Orientation of a polyhedron must be provided in quaternion format.
Contributor
Installation
Prerequisites
Using PyPI
Use the package manager pip to install AngPoly3D.
pip install AngPoly3D
Using source code
git clone https://github.com/sumitavakundu007/AngPoly3D.git
tar -xvf AngPoly3D-X.X.X
cd AngPoly3D-X.X.X
python3 setup.py install --user
Usage
from AngPoly3D import ang_poly3d_func
angles = ang_poly3d_func()
print(angles)
It will ask for few inputs to calculate the angles. You must provide the orientations, equivalent orientations and reference orientation in JSON format as following.
sample_orientations.json
{
"orientations": [[0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]
}
sample_equivalent_orientations.json
{
"equiv_orientations": [[1, 0, 0, 0]]
}
sample_reference_orientation.json
{
"ref_orientation": [1, 0, 0, 0]
}
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Metadata
Release files for AngPoly3D 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 | Actions |
|---|---|---|---|---|
| AngPoly3D-0.0.1.tar.gz | 3.8 kB | Without provenance | Details for AngPoly3D-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| AngPoly3D-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for AngPoly3D-0.0.1-py3-none-any.whl |
Total release size: 8.4 kB
Release files / AngPoly3D-0.0.1.tar.gz
| Download URL | AngPoly3D-0.0.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b89ac3de6d4dcf2e0b3ab1bc98a2247aa8f226e613d71f64c41562aa3a220342
|
|
BLAKE2b-256 checksum How to use checksums |
f4f61c6b1962f6cad4e9e107c13770c5d90c603e080ac54912e4c90aba2d0e89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.8.0 tqdm/4.60.0 CPython/3.6.9
|
Release files / AngPoly3D-0.0.1-py3-none-any.whl
| Download URL | AngPoly3D-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
538a6f700fc05df3ce615b40a2e8436e93b538ae9cff615f31936992200da01b
|
|
BLAKE2b-256 checksum How to use checksums |
e84514a1ec14fdb3c0f3b271000d0ab5523a246089a7af926c2136ec82e3579d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.8.0 tqdm/4.60.0 CPython/3.6.9
|
Security for AngPoly3D 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.