diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-07-04 18:08:53 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-07-04 18:08:53 +0800 |
commit | e79d7bda5fe74e4e7db4ee746e9526649d4437ad (patch) | |
tree | 256119e5afd8115f39d0808e9b264b172201a6f9 | |
parent | 0ff09cb3cbad15c293cc7c177fa82732b2b767c5 (diff) | |
download | cexcess-e79d7bda5fe74e4e7db4ee746e9526649d4437ad.tar.bz2 |
deproject_sbp.py: minor fixes to "rcut" and "rignore"
-rwxr-xr-x | deproject_sbp.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/deproject_sbp.py b/deproject_sbp.py index 8cb6988..a11078d 100755 --- a/deproject_sbp.py +++ b/deproject_sbp.py @@ -201,6 +201,8 @@ class SBP: bkg = None # ignorance/minimal radius from which the SBP is fitted to the PLCModel rignore = None + # cut radius where the extrapolation stops + rcut = None # PLCModel instance used to extrapolate the SBP plcmodel = None @@ -208,7 +210,7 @@ class SBP: self.load_data(r=r, r_err=r_err, s=s, s_err=s_err, rignore=rignore) self.plcmodel = PLCModel(scale=True) - def load_data(self, r, r_err=None, s=None, s_err=None, rcut=None): + def load_data(self, r, r_err=None, s=None, s_err=None, rignore=None): if r.ndim == 2 and r.shape[1] == 4: # 4-column data self.r = r[:, 0].copy() @@ -220,7 +222,7 @@ class SBP: self.r_err = np.array(r_err) self.s = np.array(s) self.s_err = np.array(s_err) - self.rcut = rcut + self.rignore = rignore def subtract_bkg(self, bkg): """ |