Skip to content

Commit

Permalink
injctrl.FIX: fix bugs in StdFit PVs write methods
Browse files Browse the repository at this point in the history
  • Loading branch information
anacso17 committed Sep 12, 2023
1 parent 6625451 commit 616d693
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions siriuspy/siriuspy/injctrl/bias_feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,23 +250,26 @@ def set_gp_noise_std_fit(self, value):
self.gpmodel.likelihood.variance.unfix()
else:
self.gpmodel.likelihood.variance.fix()
self.run_callbacks('GPModNoiseStdFit-Sts')
self.run_callbacks('GPModNoiseStdFit-Sts', value)
return True

def set_gp_kern_std_fit(self, value):
"""."""
if bool(value):
self.gpmodel.kern.variance.unfix()
else:
self.gpmodel.kern.variance.fix()
self.run_callbacks('GPModKernStdFit-Sts')
self.run_callbacks('GPModKernStdFit-Sts', value)
return True

def set_gp_kern_leng_fit(self, value):
"""."""
if bool(value):
self.gpmodel.kern.lengthscale.unfix()
else:
self.gpmodel.kern.lengthscale.fix()
self.run_callbacks('GPModKernLenSclFit-Sts')
self.run_callbacks('GPModKernLenSclFit-Sts', value)
return True

# ############ Auxiliary Methods ############
def _callback_to_thread(self, **kwgs):
Expand Down

0 comments on commit 616d693

Please sign in to comment.