Skip to content
Snippets Groups Projects
Commit 77aac209 authored by Jose Borreguero's avatar Jose Borreguero
Browse files

Refs #22694 supress divide by zero warning

parent 7921aa68
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,9 @@ class ChudleyElliot(IFunction1D):
tau = self.getParameterValue("Tau")
length = self.getParameterValue("L")
xvals = np.array(xvals)
hwhm = self.hbar*(1.0 - np.sin(xvals * length) / (xvals * length))/tau
with np.errstate(divide='ignore'):
hwhm = self.hbar*(1.0 - np.sin(xvals * length)
/ (xvals * length))/tau
return hwhm
......
......@@ -19,7 +19,7 @@ The Chudley-Elliot Jump diffusion model [1]_ has the form:
Units of :math:`l` are inverse units of :math:`Q`.
Units of :math:`` are :math:`meV` if units of :math:`\tau` are *ps*.
Units of :math:`HWHM` are :math:`meV` if units of :math:`\tau` are *ps*.
Alternatively, units of :math:`HWHM` are :math:`\mu eV` if units of
:math:`\tau` are *ns*.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment