From e0f8e67ec452f7c5a45358ff19ec721f62633646 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 7 Feb 2017 15:26:14 +0800 Subject: xspec_avg_tz.tcl: Fix the edge case that failed to calculate errors --- xspec/xspec_avg_tz.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xspec') 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" -- cgit v1.2.2