From 7f08bb02531d482b21b12327771ba4d55f5fb92f Mon Sep 17 00:00:00 2001 From: gac-maloja Date: Tue, 25 Oct 2022 20:47:27 +0200 Subject: [PATCH] remove others; added proper readback calc --- phases/full_polarization.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/phases/full_polarization.py b/phases/full_polarization.py index 0ad80c4..98b89fb 100644 --- a/phases/full_polarization.py +++ b/phases/full_polarization.py @@ -178,14 +178,6 @@ class UndShiftQuadrants(Adjustable): inverted_opposites = {v: k for k, v in opposites.items()} opposites.update(inverted_opposites) - self.others = others = { - "TL": "BL", - "TR": "BR" - } - - inverted_others = {v: k for k, v in others.items()} - others.update(inverted_others) - self.all_names = names = opposites.keys() pvnames = [f"{ID}-{n}" for n in names] @@ -222,9 +214,8 @@ class UndShiftQuadrants(Adjustable): def get_current_value(self): - vals = [self.adjs.__dict__[n].get_current_value() for n in self.all_names] - print(vals) - return max(vals) #TODO: this is not final + d = self.adjs.__dict__ + return d["TL"].get_current_value() - d["TR"].get_current_value() def is_moving(self): return any(a.is_moving() for a in self.adjs)