Skip to content

Commit

Permalink
Fixing tests and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
burkeds committed Sep 30, 2024
1 parent 4bb7853 commit 8f121dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
18 changes: 2 additions & 16 deletions src/ophyd_async/tango/base_devices/_base_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def tango_polling(
Parameters
----------
polling : Optional[Union[Tuple[float, float, float],
Dict[str, Tuple[float, float, float]]]], optional
polling : Optional[Union[Tuple[float, float, float], Dict[str, Tuple[float, float,
float]]]], optional
Device-level polling configuration as a tuple of three floats representing the
polling interval, polling timeout, and polling delay. Alternatively,
a dictionary can be provided to specify signal-level polling configurations
Expand All @@ -139,20 +139,6 @@ def tango_polling(
Callable
A class decorator that sets the `_polling` and `_signal_polling` attributes on
the decorated class.
Example
-------
Device-level and signal-level polling:
@tango_polling(
polling=(0.5, 1.0, 0.1),
signal_polling={
'signal1': (0.5, 1.0, 0.1),
'signal2': (1.0, 2.0, 0.2),
}
)
class MyTangoDevice(TangoDevice):
signal1: Signal
signal2: Signal
"""
if isinstance(polling, dict):
signal_polling = polling
Expand Down
8 changes: 4 additions & 4 deletions src/ophyd_async/tango/base_devices/_tango_readable.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ class TangoReadable(TangoDevice, StandardReadable):
Usage: to proper signals mount should be awaited:
new_device = await TangoDevice(<tango_device>)
attributes:
trl: Tango resource locator, typically of the device server.
proxy: AsyncDeviceProxy object for the device. This is created when the
device is connected.
Attributes:
trl: Tango resource locator, typically of the device server.
proxy: AsyncDeviceProxy object for the device. This is created when the
device is connected.
"""

def __init__(
Expand Down

0 comments on commit 8f121dc

Please sign in to comment.