Skip to content

Commit

Permalink
Merge pull request #37 from dgasmith/tweaks
Browse files Browse the repository at this point in the history
QCA Sphinx Theme
  • Loading branch information
dgasmith authored Mar 3, 2019
2 parents ea12090 + c4b6867 commit 1506197
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions docs/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ dependencies:
- sphinx_rtd_theme
- sphinx-automodapi
- graphviz

- pip:
- git+git://github.com/MolSSI/qcarchive-sphinx-theme#egg=qcarchive_sphinx_theme
6 changes: 5 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'
try:
import qcarchive_sphinx_theme
html_theme = 'qcarchive_sphinx_theme'
except ModuleNotFoundError:
html_theme = 'sphinx_rtd_theme'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down
2 changes: 1 addition & 1 deletion qcelemental/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"`conda install pydantic -c conda-forge` or `pip install pydantic`")

from .molecule import Molecule
from .results import Result, ResultInput
from .results import Result, ResultInput, ResultProperties
from .procedures import OptimizationInput, Optimization
from .common_models import Provenance, ComputeError, FailedOperation
4 changes: 2 additions & 2 deletions qcelemental/models/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from .molecule import Molecule


class Properties(BaseModel):
class ResultProperties(BaseModel):

# Calcinfo
calcinfo_nbasis: int = None
Expand Down Expand Up @@ -79,7 +79,7 @@ def json_dict(self, *args, **kwargs):
class Result(ResultInput):
schema_name: constr(strip_whitespace=True, regex=qcschema_output_default) = qcschema_output_default

properties: Properties = Properties()
properties: ResultProperties = ResultProperties()
return_result: Union[float, List[float], Dict[str, Any]]

stdout: Optional[str] = None
Expand Down

0 comments on commit 1506197

Please sign in to comment.