Skip to content

Commit

Permalink
Merge pull request #19 from decarlof/master
Browse files Browse the repository at this point in the history
added docs for config
  • Loading branch information
decarlof committed Mar 30, 2024
2 parents ab2fa47 + c8d8776 commit 2db3d99
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
9 changes: 9 additions & 0 deletions dmagic/config.py
Expand Up @@ -7,6 +7,15 @@
from collections import OrderedDict
from dmagic import log

__author__ = "Francesco De Carlo"
__copyright__ = "Copyright (c) 2015-2016, UChicago Argonne, LLC."
__docformat__ = 'restructuredtext en'
__all__ = ['config_to_list',
'get_config_name',
'log_values',
'parse_known_args',
'write']

CONFIG_FILE_NAME = os.path.join(str(pathlib.Path.home()), 'dmagic.conf')

SECTIONS = OrderedDict()
Expand Down
2 changes: 1 addition & 1 deletion dmagic/pv.py
Expand Up @@ -98,7 +98,7 @@ def update(args, date=None):
Parameters
----------
args : parametars passed at the CLI
args : parameters passed at the CLI, see config.py for full options
"""

auth = scheduling.authorize()
Expand Down
1 change: 1 addition & 0 deletions docs/source/api.rst
Expand Up @@ -8,6 +8,7 @@ for `DMagic <https://github.com/decarlof/DMagic>`_.

.. toctree::

api/dmagic.config
api/dmagic.pv
api/dmagic.scheduling
api/dmagic.utils
Expand Down
17 changes: 17 additions & 0 deletions docs/source/api/dmagic.config.rst
@@ -0,0 +1,17 @@
:mod:`dmagic.config`
====================

.. automodule:: dmagic.config
:members:
:show-inheritance:
:undoc-members:

.. rubric:: **Functions:**

.. autosummary::

config_to_list
get_config_name
log_values
parse_known_args
write

0 comments on commit 2db3d99

Please sign in to comment.