From 7a4d901e6c38e0ca2a7be2497ce2486c25bd8276 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 12 Aug 2020 09:14:10 +0800 Subject: [PATCH] fix wiggle amplitude --- noptica.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noptica.py b/noptica.py index 82bc8f6..8da101e 100644 --- a/noptica.py +++ b/noptica.py @@ -152,7 +152,7 @@ class Stabilizer: self.unlock_counter += 1 if not success and (self.unlock_counter > self.unlock_counter_threshold): print("wiggle") - self.wiggle = self.wiggle_amplitude*(np.random.random() - 0.5) + self.wiggle = self.wiggle_amplitude*2.0*(np.random.random() - 0.5) self.unlock_counter = 0 self.cb(spectrum, freq, self.locked(), tuning + self.wiggle)