From 3b05e02e62416e071476882bb9e82f60d488c517 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@8a9318a1-56ba-4d59-b755-99d26321be01> Date: Wed, 13 Jan 2010 17:13:30 +0000 Subject: [PATCH] a little bit of clean up git-svn-id: https://svn.ssec.wisc.edu/repos/glance/trunk@99 8a9318a1-56ba-4d59-b755-99d26321be01 --- pyglance/glance/compare.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pyglance/glance/compare.py b/pyglance/glance/compare.py index 6d1e007..736169e 100644 --- a/pyglance/glance/compare.py +++ b/pyglance/glance/compare.py @@ -902,11 +902,8 @@ def colocateToFile_library_call(a_path, b_path, var_list=[ ], variableBasedFilter = varRunInfo['variable_based_filter_b'] if 'variable_based_filter_b' in varRunInfo else None, fileDescriptionForDisplay = "file B") - # pre-check if this data should be compared to the longitude and latitude - do_not_test_with_lon_lat = (len(lon_lat_data.keys()) <= 0) - - # colocate the data for this variable - if (not do_not_test_with_lon_lat) and runInfo['doColocate'] : + # colocate the data for this variable if we have longitude/latitude data + if (len(lon_lat_data.keys()) > 0) and runInfo['doColocate'] : # match up our points in A and B (aData, bData, (numberOfMultipleMatchesInA, numberOfMultipleMatchesInB)), \ -- GitLab