fix: Python2 syntax compatibility

Signed-off-by: Christopher Mattar <info@3dcoded.xyz>
This commit is contained in:
Christopher Mattar 2026-02-27 09:11:20 -05:00
parent d6a6607dcf
commit c2447bb153
No known key found for this signature in database
GPG key ID: BF55D8438F300C5F

View file

@ -127,11 +127,12 @@ class QuadGantryLevel:
def plot(self,f,x):
return f[0]*x + f[1]
def get_status(self, eventtime):
return {
status = {
'z_height': self.z_height,
'z_positions': self.z_positions,
**self.z_status.get_status(eventtime)
}
status.update(self.z_status.get_status(eventtime))
return status
def load_config(config):
return QuadGantryLevel(config)