Skip to content
Snippets Groups Projects
Commit a2140c46 authored by Sander Snoo's avatar Sander Snoo
Browse files

Fixed setpoint_mgr __str__ and added property axis

parent 0cc06220
No related branches found
No related tags found
No related merge requests found
......@@ -43,12 +43,12 @@ class setpoint_mgr():
return output
def __str__(self):
content = "\rSetpoint_mgr class. Contained data:\r\r"
content = "\nSetpoint_mgr class. Contained data:\n"
for key in sorted(self._setpoints.keys()):
content += "axis : {}\r".format(key)
content += "axis : {}\n".format(key)
content += self._setpoints[key].__str__()
content += "\r\r"
content += "\n"
return content
......@@ -121,6 +121,10 @@ class setpoint_mgr():
setpnts += (None, )
return setpnts
@property
def axis(self):
return list(sorted(self._setpoints.keys()))
@dataclass
class setpoint():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment