commented calc of unused numbers
This commit is contained in:
@ -88,8 +88,8 @@ class Undulators(Adjustable):
|
||||
k = a.get_current_value()
|
||||
energy = self.convert.E(k)
|
||||
|
||||
all_ks = [a.get_current_value() for a in self.adjs.values()]
|
||||
checks = np.isclose(all_ks, k, rtol=0, atol=0.001)
|
||||
# all_ks = [a.get_current_value() for a in self.adjs.values()]
|
||||
# checks = np.isclose(all_ks, k, rtol=0, atol=0.001)
|
||||
# if not all(checks):
|
||||
# print(f"Warning: Ks are not all close to {k}:")
|
||||
# for name, k, chk in zip(self.adjs.keys(), all_ks, checks):
|
||||
|
Reference in New Issue
Block a user