@@ -52,7 +52,7 @@ def __init__(self, at_element, index, atsim, fields=None):
5252 data source is attached to.
5353 index (int): The element's index in the ring, starting from 1.
5454 atsim (ATSimulator): An instance of an ATSimulator object.
55- fields (list, optional ): The fields found on this element.
55+ fields (list, typing.Optional ): The fields found on this element.
5656
5757 Raises:
5858 ValueError: if an unsupported field is passed, i.e. a field not in
@@ -111,7 +111,7 @@ def add_field(self, field):
111111 this data_source.
112112
113113 Raises:
114- FieldException: if the specified field is already present or if it
114+ pytac. FieldException: if the specified field is already present or if it
115115 is not supported.
116116 """
117117 if field in self ._fields :
@@ -128,10 +128,10 @@ def get_value(self, field, handle=None, throw=True):
128128
129129 Args:
130130 field (str): The requested field.
131- handle (str, optional ): Handle is not needed and is only here to
131+ handle (str, typing.Optional ): Handle is not needed and is only here to
132132 conform with the structure of the
133133 DataSource base class.
134- throw (bool, optional ): If the check for completion of outstanding
134+ throw (bool, typing.Optional ): If the check for completion of outstanding
135135 calculations times out, then:
136136 if True, raise a ControlSystemException;
137137 if False, log a warning and return the
@@ -141,8 +141,8 @@ def get_value(self, field, handle=None, throw=True):
141141 float: The value of the specified field on this data source.
142142
143143 Raises:
144- FieldException: if the specified field does not exist.
145- ControlSystemException: if the calculation completion check fails,
144+ pytac. FieldException: if the specified field does not exist.
145+ pytac. ControlSystemException: if the calculation completion check fails,
146146 and throw is True.
147147 """
148148 # Wait for any outstanding calculations to conclude, to ensure they are
@@ -168,13 +168,13 @@ def set_value(self, field, value, throw=None):
168168 Args:
169169 field (str): The requested field.
170170 value (float): The value to be set.
171- throw (bool, optional ): Throw is not needed and is only here to
171+ throw (bool, typing.Optional ): Throw is not needed and is only here to
172172 conform with the structure of the
173173 DataSource base class.
174174
175175 Raises:
176- HandleException: if the specified field cannot be set to.
177- FieldException: if the specified field does not exist.
176+ pytac. HandleException: if the specified field cannot be set to.
177+ pytac. FieldException: if the specified field does not exist.
178178 """
179179 if field in self ._fields :
180180 if field in self ._set_field_funcs .keys ():
@@ -418,10 +418,10 @@ def get_value(self, field, handle=None, throw=True):
418418
419419 Args:
420420 field (str): The requested field.
421- handle (str, optional ): Handle is not needed and is only here to
421+ handle (str, typing.Optional ): Handle is not needed and is only here to
422422 conform with the structure of the
423423 DataSource base class.
424- throw (bool, optional ): If the check for completion of outstanding
424+ throw (bool, typing.Optional ): If the check for completion of outstanding
425425 calculations times out, then:
426426 if True, raise a ControlSystemException;
427427 if False, log a warning and return the
@@ -431,8 +431,8 @@ def get_value(self, field, handle=None, throw=True):
431431 float: The value of the specified field on this data source.
432432
433433 Raises:
434- FieldException: if the specified field does not exist.
435- ControlSystemException: if the calculation completion check fails,
434+ pytac. FieldException: if the specified field does not exist.
435+ pytac. ControlSystemException: if the calculation completion check fails,
436436 and throw is True.
437437 """
438438 # Wait for any outstanding calculations to conclude, to ensure they are
@@ -469,12 +469,12 @@ def set_value(self, field, value, throw=None):
469469 Args:
470470 field (str): The requested field.
471471 value (float): The value to be set.
472- throw (bool, optional ): Throw is not needed and is only here to
472+ throw (bool, typing.Optional ): Throw is not needed and is only here to
473473 conform with the structure of the
474474 DataSource base class.
475475
476476 Raises:
477- HandleException: as setting values to Pytac lattice fields is not
477+ pytac. HandleException: as setting values to Pytac lattice fields is not
478478 currently supported.
479479 """
480480 raise HandleException (
0 commit comments