How to use the qcportal.schema.options_schema.options_schema function in qcportal

To help you get started, we’ve selected a few qcportal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MolSSI / QCPortal / qcportal / schema / schema_getters.py View on Github external
import jsonschema

from .definitions_schema import get_definition
from .molecule_schema import molecule_schema
from .options_schema import options_schema

__all__ = ["get_schema", "get_table_indices", "get_schema_keys", "validate", "get_hash_fields", "format_result_indices"]

_schemas = {}

# Add in molecule
for req in molecule_schema["required_definitions"]:
    molecule_schema["definitions"][req] = get_definition(req)

_schemas["molecule"] = molecule_schema
_schemas["options"] = options_schema

# Load molecule schema

# Collection and hash indices
_table_indices = {

    "collection": ("collection", "name"),
    "procedure": ("procedure", "program"),

    "molecule": ("molecule_hash", "molecular_formula"),
    "result": ("molecule_id", "program", "driver", "method", "basis", "options"),
    "options": ("program", "name"),

    "task_queue": ("status", "hash_index", "tag"),
    "service_queue": ("status", "hash_index", "tag"),
}  # yapf: disable

qcportal

A distributed compute and database platform for quantum chemistry.

BSD-3-Clause
Latest version published 13 days ago

Package Health Score

77 / 100
Full package analysis

Similar packages