commented calc of unused numbers

This commit is contained in:
2021-08-27 16:56:43 +02:00
parent 2b8de02e58
commit 775df217b3

View File

@ -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):