Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sciglassplus-1.0.0.tar.gz (23.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sciglassplus-1.0.0-py3-none-any.whl (23.0 MB view details)

Uploaded Python 3

File details

Details for the file sciglassplus-1.0.0.tar.gz.

File metadata

  • Download URL: sciglassplus-1.0.0.tar.gz
  • Upload date:
  • Size: 23.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for sciglassplus-1.0.0.tar.gz
Algorithm Hash digest
SHA256 debe4dcda90bf751687ccd95dea027cb90d6193f2b00892d8f35a3db5deb1943
MD5 1fa73a1d9432745898d3941346f33d58
BLAKE2b-256 a8fb74d2423059e320a6e7cc65f99dd83c5c747e203f2817db2a6d02f8c3137f

See more details on using hashes here.

File details

Details for the file sciglassplus-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: sciglassplus-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 23.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for sciglassplus-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67be6ce4df23347b4969a66099e84b0e9192abe60ab9f754c96014fdfa252d8e
MD5 4f137f41159ac2ac1092e041434c16fa
BLAKE2b-256 93a466d447c6306bb04b8fc1b17adc19ce301792c1528a39697c9d9f5128df42

See more details on using hashes here.

Supported by

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