From 39a9e452cc885e0f67ec640648c6714dd050e917 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@8a9318a1-56ba-4d59-b755-99d26321be01> Date: Fri, 24 Jul 2009 19:41:35 +0000 Subject: [PATCH] correcting integer conversion git-svn-id: https://svn.ssec.wisc.edu/repos/glance/trunk@39 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 f65a754..1ddfc00 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 (atoi(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