def getRemovedFloat(defaultFloat, elementNode, key, prefix):
 prefixKey = (prefix + key)
 if (prefixKey in elementNode.attributes):
  floatValue = evaluate.getEvaluatedFloat(None, elementNode, prefixKey)
  if (floatValue == None):
   print 'Warning, evaluated value in getRemovedFloatByKeys in matrix is None for key:'
   print prefixKey
   print 'for elementNode dictionary value:'
   print elementNode.attributes[prefixKey]
   print 'for elementNode dictionary:'
   print elementNode.attributes
  else:
   defaultFloat = floatValue
  del elementNode.attributes[prefixKey]
 return defaultFloat

def getRemovedFloat ( defaultFloat , elementNode , key , prefix ) : prefixKey = ( prefix + key ) if ( prefixKey in elementNode . attributes ) : floatValue = evaluate . getEvaluatedFloat ( None , elementNode , prefixKey ) if ( floatValue == None ) : print 'Warning, evaluated value in getRemovedFloatByKeys in matrix is None for key:' print prefixKey print 'for elementNode dictionary value:' print elementNode . attributes [ prefixKey ] print 'for elementNode dictionary:' print elementNode . attributes else : defaultFloat = floatValue del elementNode . attributes [ prefixKey ] return defaultFloat
get the float by the key and the prefix .