From f9bd6f41172c17d46a38fa7e9a3affab9e8582e4 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@8a9318a1-56ba-4d59-b755-99d26321be01> Date: Fri, 24 Jul 2009 19:45:34 +0000 Subject: [PATCH] another attempt to get that if statement right git-svn-id: https://svn.ssec.wisc.edu/repos/glance/trunk@40 8a9318a1-56ba-4d59-b755-99d26321be01 --- pyglance/glance/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyglance/glance/io.py b/pyglance/glance/io.py index 1ddfc00..9fd2efc 100644 --- a/pyglance/glance/io.py +++ b/pyglance/glance/io.py @@ -76,7 +76,7 @@ class hdf(SD): """ if (scaling_method == 0) : return raw_data_copy - if not ((scaling_method is None) or (int(scaling_method) > 1)) : + if not ((scaling_method is None) or (int(scaling_method) <= 1)) : LOG.warn ('Scaling method of \"' + str(scaling_method) + '\" will be ignored in favor of hdf standard method. ' + 'This may cause problems with data consistency') -- GitLab