def getRemovedFloatByKeys(keys, prefix, xmlElement):
 removedFloat = 0.0
 for key in keys:
  prefixKey = (prefix + key)
  if (prefixKey in xmlElement.attributeDictionary):
   floatValue = evaluate.getEvaluatedFloat(prefixKey, xmlElement)
   if (floatValue == None):
    print 'Warning, evaluated value in getEvaluatedFloatByPrefixes in matrix is None for key:'
    print prefixKey
    print 'for xmlElement dictionary value:'
    print xmlElement.attributeDictionary[prefixKey]
    print 'for xmlElement dictionary:'
    print xmlElement.attributeDictionary
   else:
    removedFloat += floatValue
   del xmlElement.attributeDictionary[prefixKey]
 return removedFloat

def getRemovedFloatByKeys ( keys , prefix , xmlElement ) : removedFloat = 0.0 for key in keys : prefixKey = ( prefix + key ) if ( prefixKey in xmlElement . attributeDictionary ) : floatValue = evaluate . getEvaluatedFloat ( prefixKey , xmlElement ) if ( floatValue == None ) : print 'Warning, evaluated value in getEvaluatedFloatByPrefixes in matrix is None for key:' print prefixKey print 'for xmlElement dictionary value:' print xmlElement . attributeDictionary [ prefixKey ] print 'for xmlElement dictionary:' print xmlElement . attributeDictionary else : removedFloat += floatValue del xmlElement . attributeDictionary [ prefixKey ] return removedFloat
get the float by the keys and the prefix .