From 253542d2e4c02246953b3cf0f19ce6cb0dd7a9f0 Mon Sep 17 00:00:00 2001 From: AlbertFarhutdinov <45900561+AlbertFarhutdinov@users.noreply.github.com> Date: Mon, 22 Jul 2019 23:09:15 +0300 Subject: [PATCH] Update line #618 in cfcal.py --- src/cfcal/cfcal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cfcal/cfcal.py b/src/cfcal/cfcal.py index d59c82e..71a7aac 100644 --- a/src/cfcal/cfcal.py +++ b/src/cfcal/cfcal.py @@ -615,7 +615,7 @@ def NXchi(self, Ts=None): ChiC_zz, ChiC_xx, ChiV_zz, ChiV_xx = self.chis(Ts) - chi = NXfield(ChiC_zz + ChiV_zz + 2*(ChiC_xx + ChiV_xx), name="chi") + chi = NXfield((ChiC_zz + ChiV_zz + 2*(ChiC_xx + ChiV_xx))/3, name="chi") invchi = NXfield(1/chi, name='invchi') chiz = NXfield(ChiC_zz+ChiV_zz, name='chiz') chix = NXfield(ChiC_xx+ChiV_xx, name='chix') @@ -652,4 +652,4 @@ def pseudovoigt(x, center, sigma, gamma): ratio = GammaL / FWHM fraction = 1.36603 * ratio - 0.47719 * ratio**2 + 0.11116 * ratio**3 return ((1-fraction) * gauss(x, center, sigma) + - fraction * lorentz(x, center, gamma)) \ No newline at end of file + fraction * lorentz(x, center, gamma))