Skip to content

Commit

Permalink
Merge pull request #247 from BCDA-APS/256-synApps
Browse files Browse the repository at this point in the history
shorten synApps_ophyd to synApps
  • Loading branch information
prjemian authored Sep 3, 2019
2 parents 729014d + 2be6416 commit a3e0286
Show file tree
Hide file tree
Showing 18 changed files with 23 additions and 22 deletions.
2 changes: 1 addition & 1 deletion apstools/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
import threading
import time

from .synApps_ophyd import *
from .synApps import *

from ophyd import Component, Device, DeviceStatus, FormattedComponent
from ophyd import Signal, EpicsMotor, EpicsSignal, EpicsSignalRO
Expand Down
4 changes: 2 additions & 2 deletions apstools/plans.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ def _get_sscan_data_objects(sscan):
PARAMETERS
sscan : Device
one EPICS sscan record (instance of `apstools.synApps_ophyd.sscanRecord`)
one EPICS sscan record (instance of `apstools.synApps.sscanRecord`)
"""
scan_data_objects = OrderedDict()
Expand Down Expand Up @@ -667,7 +667,7 @@ def sscan_1D(
PARAMETERS
sscan : Device
one EPICS sscan record (instance of `apstools.synApps_ophyd.sscanRecord`)
one EPICS sscan record (instance of `apstools.synApps.sscanRecord`)
running_stream : str or `None`
(default: ``"primary"``)
Name of document stream to write positioners and detectors data
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
EXAMPLE
from apstools.synApps_ophyd import SaveData
from apstools.synApps import SaveData
save_data = SaveData("xxx:saveData_", name="save_data")
Expand Down Expand Up @@ -40,7 +40,7 @@ class SaveData(Device):
usage::
from apstools.synApps_ophyd import SaveData
from apstools.synApps import SaveData
save_data = SaveData("xxx:saveData_", name="save_data")
.. autosummary::
Expand Down
4 changes: 2 additions & 2 deletions apstools/synApps_ophyd/sscan.py → apstools/synApps/sscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
EXAMPLE
import apstools.synApps_ophyd
scans = apstools.synApps_ophyd.SscanDevice("xxx:", name="scans")
import apstools.synApps
scans = apstools.synApps.SscanDevice("xxx:", name="scans")
scans.select_channels() # only the channels configured in EPICS
Expand Down
8 changes: 4 additions & 4 deletions apstools/synApps_ophyd/swait.py → apstools/synApps/swait.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
EXAMPLES::
import apstools.synApps_ophyd
calcs = apstools.synApps_ophyd.UserCalcsDevice("xxx:", name="calcs")
import apstools.synApps
calcs = apstools.synApps.UserCalcsDevice("xxx:", name="calcs")
calc1 = calcs.calc1
apstools.synApps_ophyd.setup_random_number_swait(calc1)
apstools.synApps.setup_random_number_swait(calc1)
apstools.synApps_ophyd.setup_incrementer_swait(calcs.calc2)
apstools.synApps.setup_incrementer_swait(calcs.calc2)
calc1.reset()
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/source/source/synApps/_busy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ synApps busy record
see the synApps ``busy`` module suppport:
https://github.com/epics-modules/busy

.. automodule:: apstools.synApps_ophyd.busy
.. automodule:: apstools.synApps.busy
:members:

2 changes: 1 addition & 1 deletion docs/source/source/synApps/_calcout.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ EPICS base calcout record
The ``calcout`` record is part of EPICS base:
https://wiki-ext.aps.anl.gov/epics/index.php/RRM_3-14_Calcout

.. automodule:: apstools.synApps_ophyd.calcout
.. automodule:: apstools.synApps.calcout
:members:

2 changes: 1 addition & 1 deletion docs/source/source/synApps/_epid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ synApps epid record
The ``epid`` record is part of the ``std`` module:
https://epics.anl.gov/bcda/synApps/std/epidRecord.html

.. automodule:: apstools.synApps_ophyd.epid
.. automodule:: apstools.synApps.epid
:members:

2 changes: 1 addition & 1 deletion docs/source/source/synApps/_sscan.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ synApps sscan record
see the synApps ``sscan`` module suppport:
https://github.com/epics-modules/sscan

.. automodule:: apstools.synApps_ophyd.sscan
.. automodule:: apstools.synApps.sscan
:members:

2 changes: 1 addition & 1 deletion docs/source/source/synApps/_swait.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ https://htmlpreview.github.io/?https://raw.githubusercontent.com/epics-modules/c
see the synApps ``calc`` module suppport:
https://github.com/epics-modules/calc

.. automodule:: apstools.synApps_ophyd.swait
.. automodule:: apstools.synApps.swait
:members:

2 changes: 1 addition & 1 deletion docs/source/source/synApps/_transform.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ synApps transform record
The ``transform`` record is part of the ``calc`` module:
:see: https://htmlpreview.github.io/?https://raw.githubusercontent.com/epics-modules/calc/R3-6-1/documentation/TransformRecord.html#Fields

.. automodule:: apstools.synApps_ophyd.transform
.. automodule:: apstools.synApps.transform
:members:

11 changes: 6 additions & 5 deletions ideas/issue_91/sscan_issue91.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@
"""

import asyncio
from collections import deque
from collections import deque, OrderedDict
import numpy as np

P = "xxx:"

from ophyd.scaler import ScalerCH
from ophyd import EpicsMotor
from apstools.synApps_ophyd import UserCalcsDevice
from apstools.synApps_ophyd import SscanDevice
from apstools.synApps_ophyd import SaveData
from apstools.synApps_ophyd import setup_lorentzian_swait
from apstools.synApps import UserCalcsDevice
from apstools.synApps import SscanDevice
from apstools.synApps import SaveData
from apstools.synApps import setup_lorentzian_swait

scaler = ScalerCH(f"{P}scaler1", name="scaler")
scaler.select_channels(None)
Expand Down

0 comments on commit a3e0286

Please sign in to comment.