How to use qcportal - 4 common examples

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 / data / data_getters.py View on Github external
def get_molecule(name, orient=True):
    """
    Returns a Molecule object from the available stored objects.
    """
    fname = get_file_name("molecules", name)
    if not fname:
        raise OSError("File: {}/{} not found".format("molecules", name))

    return Molecule.from_file(fname, orient=orient)
github MolSSI / QCPortal / qcportal / schema / schema_getters.py View on Github external
import copy
import json

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"),
github MolSSI / QCPortal / qcportal / schema / schema_getters.py View on Github external
import copy
import json

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"),
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 3 days ago

Package Health Score

77 / 100
Full package analysis

Similar packages