moved mocked unit to fake epics, added pv name to repr of PV wrapper

This commit is contained in:
2020-05-06 10:24:25 +00:00
parent 7ead66dc47
commit 1ea6df3297
+2 -3
View File
@@ -3,12 +3,11 @@ import epics
class PV(epics.PV):
units = b"km"
def __repr__(self):
name = self.pvname
val = self.get()
units = self.units.decode()
return "PV at {} {}".format(val, units)
return "PV \"{}\" at {} {}".format(name, val, units)