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.3.tar.gz (4.1 kB 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.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

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

Hashes for sciglassplus-1.0.3.tar.gz
Algorithm Hash digest
SHA256 3d41b8a178c0d0d540a24c488539bce44198ce7542132982cc2e7452c1bf9ece
MD5 d46db5be3c50607924c3d353136216c4
BLAKE2b-256 4a51e8499d6f6796f07b9d05229149bc386f9089f6283fa0ed690205d91f0728

See more details on using hashes here.

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

Hashes for sciglassplus-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 672c5e3ae64b46e5e6c3509062270011d28e499d8615c235263004e8086eb403
MD5 da444c21f687a8a79d8147f31680a690
BLAKE2b-256 faeb180adf6af66c815065733cb36e99f48e34d1d88ffd65d6ad83c04d104131

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