Skip to content

Commit

Permalink
MNT #72
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Apr 21, 2021
1 parent ad9c0cc commit 7208897
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/source/diffract.rst
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,10 @@ pseudo positioners.
if not self.connected:
return
if self.energy_update_calc.get() in (1, "Yes", "locked", "OK"):
energy =self.energy.get()
units = self.energy_EGU.get()
logger.debug("%s energy changed: %f %s", self.name, value, units)
keV = pint.Quantity(value, units).to(ureg.keV)
logger.debug("%s energy changed: %f %s", self.name, energy, units)
keV = pint.Quantity(energy, units).to(ureg.keV)
self._calc.energy = keV.magnitude
self._update_position()
Expand Down

0 comments on commit 7208897

Please sign in to comment.