Core explore periodic table capabilities for the curator core project
Project description
core_explore_periodic_table_app
core_explore_periodic_table_app is a Django app.
Quick start
1. Add “core_explore_periodic_table_app” to your INSTALLED_APPS setting
INSTALLED_APPS = [
...
'core_explore_periodic_table_app',
]
2. Include the core_explore_periodic_table_app URLconf in your project urls.py
re_path(r'^explore/periodic_table/', include("core_explore_periodic_table_app.urls")),
3. Configure the Search Operators
Configure the Search by periodic table app by adding search operators pointing to chemical elements in the CDCS data. Start by adding a search operator:
import requests
payload = {
"name": "chemical",
"xpath_list": [
"/experiment/experimentType/tracerDiffusivity/diffusingSpecies/element",
"/experiment/experimentType/tracerDiffusivity/material/Composition/constituents/constituent/element"
]
}
requests.post(
SERVER_URI + "/explore/keyword/rest/search_operators/", data=payload, auth=(USER, PASSWORD)
)
Then, tell the periodic table app to use one or many search operators by adding mappings:
import requests
payload = {
"search_operator": "5f49048f3b3689f92cb84f41"
}
requests.post(
SERVER_URI + "/explore/periodic_table/rest/search_operators_mapping/", data=payload, auth=(USER, PASSWORD)
)
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
File details
Details for the file core_explore_periodic_table_app-2.12.0.tar.gz
.
File metadata
- Download URL: core_explore_periodic_table_app-2.12.0.tar.gz
- Upload date:
- Size: 31.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80d1d8dca74b9ef54a2fc3d32602a12dd4abcbd36d646a1b888fce2562dbf68b |
|
MD5 | 0c0063351577c53cda6b319a87f6ac22 |
|
BLAKE2b-256 | 4ef8d7b1047e83ac8e9904f46ae541e6e3fc2ac9f58087fd7a0af33765f31ae8 |