Skip to content

Commit

Permalink
Add getVoltage() (#20)
Browse files Browse the repository at this point in the history
Add the alias function getVoltage() to getPotential()  in the same way as the existing functions setVoltage() and setPotential().
  • Loading branch information
nkawerau authored May 3, 2023
1 parent c3dfe0d commit e73ae15
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions thales_remote/script_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,14 @@ def getPotential(self) -> float:
return self._requestValueAndParseUsingRegexp(
"POTENTIAL", "potential=\s*(.*?)V?[\r\n]{0,2}$"
)

def getVoltage(self) -> float:
"""
fead the measured potential from the device
:returns: the measured potential value
"""
return self.getPotential()

def setCurrent(self, current: float) -> str:
"""
Expand Down

0 comments on commit e73ae15

Please sign in to comment.