From 3a6f22b51cc715b3efdc1830c269de4827ccc7da Mon Sep 17 00:00:00 2001
From: "(no author)" <(no author)@8a9318a1-56ba-4d59-b755-99d26321be01>
Date: Tue, 25 Aug 2009 19:35:59 +0000
Subject: [PATCH] change to default so that completely non-finite data will not
 fail on the epsilon test

git-svn-id: https://svn.ssec.wisc.edu/repos/glance/trunk@71 8a9318a1-56ba-4d59-b755-99d26321be01
---
 pyglance/glance/delta.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyglance/glance/delta.py b/pyglance/glance/delta.py
index 0debd97..cc5bfd1 100644
--- a/pyglance/glance/delta.py
+++ b/pyglance/glance/delta.py
@@ -276,7 +276,7 @@ def _get_numerical_data_stats(a, b, diff_data, data_is_finite_mask, outside_epsi
     total_num_finite_values = sum(data_is_finite_mask)
     
     # no dividing by 0!
-    fraction_too_different = 1.0
+    fraction_too_different = 0.0
     fraction_perfect = 0.0
     if total_num_finite_values > 0 :
         fraction_too_different = num_finite_values_too_different / float(total_num_finite_values)
-- 
GitLab