Commit 30293719 authored by Tobias WEBER's avatar Tobias WEBER
Browse files

small change

parent 69d7cee1
......@@ -214,14 +214,14 @@ def calc_ellipses(Qres_Q):
if verbose:
print("4d resolution ellipsoid diagonal elements fwhm (coherent-elastic scattering) lengths:\n%s\n" \
% (1./np.sqrt(np.diag(Qres_Q)) * sig2fwhm))
% (1./np.sqrt(np.abs(np.diag(Qres_Q))) * sig2fwhm))
print("4d resolution ellipsoid principal axes fwhm lengths:\n%s\n" % fwhms)
Qres_proj = proj_quad(Qres_Q, 2)
Qres_proj = proj_quad(Qres_proj, 1)
Qres_proj = proj_quad(Qres_proj, 0)
print("Incoherent-elastic fwhm width: %s meV\n" % (1./np.sqrt(Qres_proj[0,0]) * sig2fwhm))
print("Incoherent-elastic fwhm width: %s meV\n" % (1./np.sqrt(np.abs(Qres_proj[0,0])) * sig2fwhm))
# 2d sliced ellipses
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment