From 61ea4f9db6e70d8c5a13ec3a839403022ee2ab83 Mon Sep 17 00:00:00 2001
From: "(no author)" <(no author)@8a9318a1-56ba-4d59-b755-99d26321be01>
Date: Tue, 25 Aug 2009 18:59:36 +0000
Subject: [PATCH] correcting a comparison

git-svn-id: https://svn.ssec.wisc.edu/repos/glance/trunk@66 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 5b422b6..5139873 100644
--- a/pyglance/glance/delta.py
+++ b/pyglance/glance/delta.py
@@ -128,7 +128,7 @@ def stats(diffData, mask, *etc):
     # if there are no values after the mask,
     # we can't do any of these forms of
     # statistical analysis
-    if sum(mask) is 0 :
+    if sum(mask) <= 0 :
         return { }
     
     absDiffData = abs(diffData)
-- 
GitLab