Skip to content
Snippets Groups Projects
Commit dd289323 authored by (no author)'s avatar (no author)
Browse files

use more general constants

git-svn-id: https://svn.ssec.wisc.edu/repos/glance/trunk@222 8a9318a1-56ba-4d59-b755-99d26321be01
parent ec0a54a0
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,8 @@ from mako.lookup import TemplateLookup
import glance.stats as stats
import glance.data as dataobjects
from glance.gui_constants import A_CONST, B_CONST
import logging
LOG = logging.getLogger(__name__)
......@@ -65,12 +67,12 @@ class GlanceGUIStats (object) :
"""
# get Variable names
aVarName = self.dataModel.getVariableName("A")
bVarName = self.dataModel.getVariableName("B")
aVarName = self.dataModel.getVariableName(A_CONST)
bVarName = self.dataModel.getVariableName(B_CONST)
# get Data objects
aDataObject = self.dataModel.getVariableData("A", aVarName)
bDataObject = self.dataModel.getVariableData("B", bVarName)
aDataObject = self.dataModel.getVariableData(A_CONST, aVarName)
bDataObject = self.dataModel.getVariableData(B_CONST, bVarName)
# check the minimum validity of our data; this call can raise an IncompatableDataObjects exception
dataobjects.DiffInfoObject.verifyDataCompatability(aDataObject, bDataObject, aVarName, bVarName)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment