removed sqrt from chi2

This commit is contained in:
2025-05-24 01:01:52 +02:00
parent 752837f4ec
commit bd50335d53
5 changed files with 20 additions and 15 deletions

View File

@@ -76,7 +76,7 @@ def load_spectra(path, cell_name, run=None):
prss = data['prss']
nsegs = int(data['n'])
gain = np.abs(prs)/pss
chi2 = np.abs(prss)*0.5/np.sqrt(pss.reshape(1, -1)*pss.reshape(-1, 1))
chi2 = np.abs(prss)*0.5/(pss.reshape(1, -1)*pss.reshape(-1, 1))
return fcutoff, contrast, freqs, gain, chi2