Skip to main content

A python package that implements the geometric object of a simplex.

Project description

Simplex

PyPI Version PyPI Downloads

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}
}

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

nsimplex-0.0.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

nsimplex-0.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file nsimplex-0.0.1.tar.gz.

File metadata

  • Download URL: nsimplex-0.0.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for nsimplex-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b2c4804b9dedde4af7c3d1314c8e8a9e9d47bf7abeac5ac284d680f802fdc35a
MD5 77ae5272be43d9ddbb3a703d6bf8e586
BLAKE2b-256 5034e38106ca19426e63f3f23b0fa94114cd2c81fc50739b6e286a00640def3f

See more details on using hashes here.

File details

Details for the file nsimplex-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: nsimplex-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for nsimplex-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e56cbf5e94ef0130fea2cd4ddb889edda337ff6dbd8a1b75482c5eff4d3b2a09
MD5 444cc50fdd70cad20302ef1e9315e9d3
BLAKE2b-256 94da316e7a8b8cd57d56783b512d5bea63e74e5671105e6015add3f23ca23442

See more details on using hashes here.

Supported by

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