Simplex
A python package that implements the geometric object of a simplex.
Usage
Here is an example on how to get the mapping from barycentric coordinates (concentrations) to cartesian coordinates (coords) for a n_dim = 2 for motifs with 12 atoms in their first coordination shell. generators return the unique set of concentration of the sorted possible concentrations, count is their multiplicities. This example can be found in the examples/ folder.
import simplex as sp
triangle = sp.Simplex(n_dim=2, edge_length=1, nneigh=12)
concentrations, coords = triangle.get_mapping()
generators, counts = triangle.get_generators(concentrations)
Installation
For a standalone Python package or Conda environment, please use:
pip install --user simplex
If you want to install the lastest git commit, please replace simplex by git+https://github.com/killiansheriff/simplex.git.
Contact
If any questions, feel free to contact me (ksheriff at mit dot edu).
References & Citing
If you use this repository in your work, please cite:
@article{TOBEUPDATED,
title={TOBEUPDATED},
author={Sheriff, Killian and Cao, Yifan and Freitas, Rodrigo},
journal={arXiv preprint TOBEUPDATED},
year={2024}
}
Metadata
Release files for nsimplex 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 |
|---|---|---|---|---|
| nsimplex-0.0.1.tar.gz | 3.5 kB | Without provenance | Details for nsimplex-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nsimplex-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for nsimplex-0.0.1-py3-none-any.whl |
Total release size: 7.4 kB
Release files / nsimplex-0.0.1.tar.gz
| Download URL | nsimplex-0.0.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2c4804b9dedde4af7c3d1314c8e8a9e9d47bf7abeac5ac284d680f802fdc35a
|
|
BLAKE2b-256 checksum How to use checksums |
5034e38106ca19426e63f3f23b0fa94114cd2c81fc50739b6e286a00640def3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / nsimplex-0.0.1-py3-none-any.whl
| Download URL | nsimplex-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e56cbf5e94ef0130fea2cd4ddb889edda337ff6dbd8a1b75482c5eff4d3b2a09
|
|
BLAKE2b-256 checksum How to use checksums |
94da316e7a8b8cd57d56783b512d5bea63e74e5671105e6015add3f23ca23442
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Security for nsimplex 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.