To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit d81ce585 authored by mikolajr's avatar mikolajr
Browse files

In PfeifferTPG device: minor docstrings updates and sensors field type annotation

parent 2dad1933
Pipeline #53139 passed with stages
in 3 minutes and 1 second
......@@ -248,7 +248,7 @@ class PfeifferTPG(SingleCommDevice):
super().__init__(com, dev_config)
# list of sensors connected to the TPG
self.sensors = []
self.sensors: List[str] = []
def __repr__(self):
return f"Pfeiffer TPG with {self.number_of_sensors} sensors: {self.sensors}"
......@@ -506,7 +506,7 @@ class PfeifferTPG(SingleCommDevice):
Get the full scale range of the attached sensors. See lookup table between
command and corresponding pressure in the device user manual.
:return: list of full scale range values, like [0, 1, 3, 3, 2, 0]
:return: list of full scale range values, like `[0, 1, 3, 3, 2, 0]`
:raises SerialCommunicationIOError: when communication port is not opened
:raises PfeifferTPGError: if command fails
"""
......@@ -526,7 +526,7 @@ class PfeifferTPG(SingleCommDevice):
"""
Get the full scale range of the attached sensors
:return: full scale range values in mbar, like [0.01, 1, 0.1, 1000, 50000, 10]
:return: full scale range values in mbar, like `[0.01, 1, 0.1, 1000, 50000, 10]`
:raises SerialCommunicationIOError: when communication port is not opened
:raises PfeifferTPGError: if command fails
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment