Skip to content

Commit

Permalink
added docs
Browse files Browse the repository at this point in the history
  • Loading branch information
decarlof committed Mar 29, 2024
1 parent a1f8dae commit 5d8d9f1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
22 changes: 21 additions & 1 deletion dmagic/pv.py
Expand Up @@ -60,10 +60,23 @@
__author__ = "Francesco De Carlo"
__copyright__ = "Copyright (c) 2015-2016, UChicago Argonne, LLC."
__docformat__ = 'restructuredtext en'
__all__ = ['init_PVs']
__all__ = ['init_PVs',
'update']


def init_PVs(args):
"""
Initialize the EPICS PVs that will hold user and experiment information
Parameters
----------
args.tomoscan_prefix : EPICS IOC prefix, e.g. 2bma:TomoScan:
Returns
-------
user_pvs : dict
A dictionary of EPICS PVs
"""

user_pvs = {}
tomoscan_prefix = args.tomoscan_prefix
Expand All @@ -80,6 +93,13 @@ def init_PVs(args):


def update(args, date=None):
"""
Update the EPICS PVs with user and experiment information associated with the current experiment
Parameters
----------
args : parametars passed at the CLI
"""

auth = scheduling.authorize()
run = scheduling.current_run(auth, args)
Expand Down
3 changes: 2 additions & 1 deletion doc/source/api/dmagic.pv.rst
Expand Up @@ -10,4 +10,5 @@

.. autosummary::

init_PVs
init_PVs
update

0 comments on commit 5d8d9f1

Please sign in to comment.