Skip to content

Commit

Permalink
x/y accidently flipped in inputs resulting in nonsensical errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kfanning committed Jun 5, 2023
1 parent a29b797 commit fc1f1f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/lssimpute/impute.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ def annulus_correction(self, z, z_ref=0.8):

def chi2_dof(self, x, y, params, fit_type):
dof = len(x) - self.dof(fit_type=fit_type)
return self.fit_error([x,y],params,fit_type=fit_type)/dof
return self.fit_error([y,x],params,fit_type=fit_type)/dof


def _inverse_comoving_radial_dist(self, r):
Expand Down

0 comments on commit fc1f1f8

Please sign in to comment.