diff --git a/Framework/PythonInterface/plugins/functions/ChudleyElliot.py b/Framework/PythonInterface/plugins/functions/ChudleyElliot.py index 3ffc8348f7c1e771882401f9874b267a8d9a2b91..4a72abd2e7399d0c209d664b7ecdca896e288b45 100644 --- a/Framework/PythonInterface/plugins/functions/ChudleyElliot.py +++ b/Framework/PythonInterface/plugins/functions/ChudleyElliot.py @@ -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 diff --git a/docs/source/fitting/fitfunctions/ChudleyElliot.rst b/docs/source/fitting/fitfunctions/ChudleyElliot.rst index 5364cc02384cfa6363b62f087875612eefeaafaa..b865f3547509169501e2716777e5b8ace3a51df8 100644 --- a/docs/source/fitting/fitfunctions/ChudleyElliot.rst +++ b/docs/source/fitting/fitfunctions/ChudleyElliot.rst @@ -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*.