Element Recognition
What is this.
A package that organizes compositions written as strings into pandas.DataFrames, or conversely, generates compositions from mixing ratios by using only numpy and pandas.
It works well with ternary_diagram (This makes it easy to generate beautiful ternary diagram.). Please check it out.
How to install
pip install element-recognition
How to use
If you want to know in details, see example.
Import modules
from element_recognition import get_ratio, make_compositions
get_ratio
This is a function that returns a pandas.DataFrame of mixing ratios given a compound and a raw material.
get_ratio(products = ['Li2La2TiO6'], materials = ['Li2O', 'La2O3', 'TiO2'])
Li2O La2O3 TiO2
Li2La2TiO6 1.0 1.0 1.0
make_compositions
This function returns the composition formula and the amount of all elements contained as a pandas.DataFrame by giving the raw materials and the mixing ratio.
make_compositions(materials = ['Li2O', 'La2O3', 'TiO2'], ratio = [[1, 2, 3]])
H He Li Be B C N O F Ne Na Mg Al Si P ... Rf Db Sg Bh Hs Mt Ds Rg Cn Nh Fl Mc Lv Ts Og
Li2Ti3La4O13 0.0 0.0 2.0 0.0 0.0 0.0 0.0 13.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 ... 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
LICENSE
see LICENSE.
Metadata
Release files for element-recognition 1.1.4
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 |
|---|---|---|---|---|
| element_recognition-1.1.4.tar.gz | 11.1 kB | Without provenance | Details for element_recognition-1.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| element_recognition-1.1.4-py3-none-any.whl | Python 3 | none | any | Details for element_recognition-1.1.4-py3-none-any.whl |
Total release size: 20.8 kB
Release files / element_recognition-1.1.4.tar.gz
| Download URL | element_recognition-1.1.4.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c92b8024e86f0309ee79e4d310207d215bd79bd83645627680f20d4735c5f430
|
|
BLAKE2b-256 checksum How to use checksums |
bfa2c61bda749fa9e6b2351bb7873060e88f345f34376458b8c2c5694b975b45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 CPython/3.9.12
|
Release files / element_recognition-1.1.4-py3-none-any.whl
| Download URL | element_recognition-1.1.4-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57d16b0bf5e3ee3db41d08c93bab583634c80023dde44a7867eb6ded0951083c
|
|
BLAKE2b-256 checksum How to use checksums |
0d25e3b0cbfd8833cd1c3a3318faf48e338a315717cf16c07aa8c8642599af5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 CPython/3.9.12
|
Security for element-recognition 1.1.4
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.