def checkResult(self, featureName, value):
    '\n    Use utility methods to get and test the results against the expected baseline value for this key.\n    '
    longName = '_'.join(featureName)
    if (value is None):
        self._diffs[self._test][longName] = None
        self._results[self._test][longName] = None
    assert (value is not None)
    if math.isnan(value):
        self._diffs[self._test][longName] = numpy.nan
        self._results[self._test][longName] = numpy.nan
    assert (not math.isnan(value))
    self._logger.debug('checkResults: featureName = %s', featureName)
    self._results[self._test][longName] = value
    baselineValue = self._baseline[self._featureClassName].getBaselineValue(self._test, longName)
    assert (baselineValue is not None)
    baselineValue = float(baselineValue)
    self._logger.debug('checkResults: for featureName %s, got baseline value = %f', featureName, baselineValue)
    if (baselineValue == 0.0):
        if ((value - baselineValue) == 0.0):
            percentDiff = 0.0
        else:
            percentDiff = 1.0
    else:
        percentDiff = abs((1.0 - (value / baselineValue)))
    self._diffs[self._test][longName] = percentDiff
    if (percentDiff >= 0.03):
        self._logger.error('checkResult %s, baseline value = %f, calculated = %f, diff = %f%%', featureName, float(baselineValue), value, (percentDiff * 100))
    assert (percentDiff < 0.03)
Use utility methods to get and test the results against the expected baseline value for this key.
def checkResult(self, featureName, value):
    '\n    \n    '
    longName = '_'.join(featureName)
    if (value is None):
        self._diffs[self._test][longName] = None
        self._results[self._test][longName] = None
    assert (value is not None)
    if math.isnan(value):
        self._diffs[self._test][longName] = numpy.nan
        self._results[self._test][longName] = numpy.nan
    assert (not math.isnan(value))
    self._logger.debug('checkResults: featureName = %s', featureName)
    self._results[self._test][longName] = value
    baselineValue = self._baseline[self._featureClassName].getBaselineValue(self._test, longName)
    assert (baselineValue is not None)
    baselineValue = float(baselineValue)
    self._logger.debug('checkResults: for featureName %s, got baseline value = %f', featureName, baselineValue)
    if (baselineValue == 0.0):
        if ((value - baselineValue) == 0.0):
            percentDiff = 0.0
        else:
            percentDiff = 1.0
    else:
        percentDiff = abs((1.0 - (value / baselineValue)))
    self._diffs[self._test][longName] = percentDiff
    if (percentDiff >= 0.03):
        self._logger.error('checkResult %s, baseline value = %f, calculated = %f, diff = %f%%', featureName, float(baselineValue), value, (percentDiff * 100))
    assert (percentDiff < 0.03)