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.1.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.1-py3-none-any.whl (23.0 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sciglassplus-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 dd9ec85051f7690ae1c4a53a16fac0a5924c96a99ad880757813bfae72b9c297
MD5 2aaac323c121020b4cdd830a96e1325e
BLAKE2b-256 b46a4c4aaea863619909b7eeb3eb38de98f6a94dbb2f4cb4d8e69f649d19ae2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sciglassplus-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 afc601dfc5a9ae53bd7dde1da72992566c208ccd11aee569e08c44cba910aa6f
MD5 8c7d772b228915421e3720229ea6fd4b
BLAKE2b-256 262515ff76cc9a391bdc380cbdb5d3893a0cdef24c1eb921e9a67094d57e079b

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