aboutsummaryrefslogtreecommitdiffstats
path: root/xspec
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2017-02-07 15:26:14 +0800
committerAaron LI <aaronly.me@outlook.com>2017-02-07 15:26:14 +0800
commite0f8e67ec452f7c5a45358ff19ec721f62633646 (patch)
treea7fda27eb01314c7fd898834995b4cf3fb986dd2 /xspec
parente81cdf23d0384ac20282675f3d45c3d6329666fa (diff)
downloadchandra-acis-analysis-e0f8e67ec452f7c5a45358ff19ec721f62633646.tar.bz2
xspec_avg_tz.tcl: Fix the edge case that failed to calculate errors
Diffstat (limited to 'xspec')
-rw-r--r--xspec/xspec_avg_tz.tcl2
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"