Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jhrmnn committed Nov 30, 2018
1 parent ddea5b9 commit dc8312d
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ FHI-aims
.. autofunction:: parse_aims

LaTeX
^^^^^^^^
^^^^^

.. automodule:: mona.sci.tex
:members:
Expand Down
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def __getattr__(cls, name):
'textx',
'textx.metamodel',
'numpy',
'contextvars', # for python 3.6 (readthedocs)
# for python 3.6 (readthedocs)
'contextvars',
'contextlib',
'importlib.resources',
]
Expand Down Expand Up @@ -85,3 +86,4 @@ def __getattr__(cls, name):
'**': ['about.html', 'navigation.html', 'relations.html', 'searchbox.html']
}
htmlhelp_basename = f'{project}doc'
autodoc_default_options = {'special-members': '__call__'}
26 changes: 26 additions & 0 deletions docs/glossary.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Glossary
========

.. glossary::

task
The basic building block of a calculation. A task consists of a Python
function and the arguments passed into it (inputs). The result of
a task is the return value of the function (output). A task depends on
other tasks when its inputs reference outputs of other tasks. When
run, a task can create new tasks, and its output may reference outputs
of those tasks.

rule
Recipe for creating tasks. Calling a rule with soem arguments creates
a task with those arguments as inputs.

task factory
Generalization of a rule that returns a task when called, but may first
preprocess the arguments before assigning them as inputs to the task.

directory task
A special kind of file-based :term:`task` which has an executable instead of
a Python function and files instead of arguments, and the output is
a collection of files generated by the executable when run in
a temporary directory with the input files present.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ User guide
:maxdepth: 2

quickstart
glossary

API reference
-------------
Expand Down
12 changes: 10 additions & 2 deletions mona/sci/aims/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
from .aims import Aims, SpeciesDefaults
from .aims import Aims, Atoms, Control, Geom, Script, SpeciesDefaults
from .parse import parse_aims

__all__ = ['Aims', 'SpeciesDefaults', 'parse_aims']
__all__ = [
'Aims',
'Atoms',
'SpeciesDefaults',
'Control',
'Geom',
'Script',
'parse_aims',
]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ skip-string-normalization = true

[tool.poetry]
name = "mona"
version = "0.2.5"
version = "0.2.6"
description = "Calculation framework"
readme = "README.md"
authors = ["Jan Hermann <[email protected]>"]
Expand Down

0 comments on commit dc8312d

Please sign in to comment.