No project description provided
Project description
Welcome to SciGlassPlus
A python library for the access of SciGlassPlus database.
How to install
pip install SciGlassPlus
Examples
1. Access available elements, compounds, properties and metadata
from SciGlassPlus.load import SGP, available_columns
columnNames = available_columns()
The function available_columns() will return a python dictionary containing 4 keys: "Elements", "Compounds", "Properties", "Metadata". The value of each key form a list, which includes available items.
2. Access all data
df_all = SGP()
3. Access the specified data
This method can help you filter out items you do not pay attention to and filter out data you do care about.
elements_cfg = {
"drop": ["Ca"],
"keep": ["Si"]
}
compounds_cfg = {
"drop": ["CaO", "TiO2"],
"keep": ["SiO2", "Al2O3"]
}
properties_cfg = {
"drop": ["T1", "T2"],
"keep": ["Tg"]
}
metadata_cfg = {
"drop": ["Institutions"],
"keep": ["Doi"]
}
df_filtered = SGP(
elements_cfg=elements_cfg,
compounds_cfg=compounds_cfg,
properties_cfg=properties_cfg,
metadata_cfg=metadata_cfg
)
For all the 4 configurations, the items in the list after the key "drop" means that the columns of these items are deleted from the returned data.
By the way, for elements and compounds, entries containing non-zero values in these items are filtered out.
For all the 4 configurations, the items in the list after the key "keep" means that only entries with defined values in these items are kept in the filtered data.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sciglassplus-1.0.3.tar.gz.
File metadata
- Download URL: sciglassplus-1.0.3.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d41b8a178c0d0d540a24c488539bce44198ce7542132982cc2e7452c1bf9ece
|
|
| MD5 |
d46db5be3c50607924c3d353136216c4
|
|
| BLAKE2b-256 |
4a51e8499d6f6796f07b9d05229149bc386f9089f6283fa0ed690205d91f0728
|
File details
Details for the file sciglassplus-1.0.3-py3-none-any.whl.
File metadata
- Download URL: sciglassplus-1.0.3-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
672c5e3ae64b46e5e6c3509062270011d28e499d8615c235263004e8086eb403
|
|
| MD5 |
da444c21f687a8a79d8147f31680a690
|
|
| BLAKE2b-256 |
faeb180adf6af66c815065733cb36e99f48e34d1d88ffd65d6ad83c04d104131
|