We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef03b22 commit b25d5efCopy full SHA for b25d5ef
tests/test_tuning_orbit_correction.py
@@ -24,6 +24,11 @@ def test_tuning_orm():
24
vcorr = element_holder.get_magnets("VCorr")
25
bpms = element_holder.get_bpms("BPM")
26
27
+ x, y = bpms.positions.get().T # get reference orbit
28
+ reference = np.concat((x, y))
29
+ # there should be nothing to correct, but still work
30
+ element_holder.orbit.correct(reference=reference)
31
+
32
# mangle orbit
33
hcorr.strengths.set(
34
hcorr.strengths.get() + std_kick * np.random.normal(size=len(hcorr))
0 commit comments