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