diff options
author | Aaron LI <aaronly.me@outlook.com> | 2017-02-07 15:26:14 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2017-02-07 15:26:14 +0800 |
commit | e0f8e67ec452f7c5a45358ff19ec721f62633646 (patch) | |
tree | a7fda27eb01314c7fd898834995b4cf3fb986dd2 /xspec/xspec_avg_tz.tcl | |
parent | e81cdf23d0384ac20282675f3d45c3d6329666fa (diff) | |
download | chandra-acis-analysis-e0f8e67ec452f7c5a45358ff19ec721f62633646.tar.bz2 |
xspec_avg_tz.tcl: Fix the edge case that failed to calculate errors
Diffstat (limited to 'xspec/xspec_avg_tz.tcl')
-rw-r--r-- | xspec/xspec_avg_tz.tcl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xspec/xspec_avg_tz.tcl b/xspec/xspec_avg_tz.tcl index 8146747..8af8266 100644 --- a/xspec/xspec_avg_tz.tcl +++ b/xspec/xspec_avg_tz.tcl @@ -43,7 +43,7 @@ proc get_error {pn} { global FLAG_CHI set chisq [ tcloutr stat ] set dof [ lindex [ tcloutr dof ] 0 ] - if {[ expr {$chisq / $dof} ] > 2.0} { + if {[ expr {$chisq / $dof} ] >= 1.99} { # reduced chisq too large; use sigma instead set err [ tcloutr sigma $pn ] set FLAG_CHI "TRUE" |