def getFloatListFromBracketedString(bracketedString):
 if (not getIsBracketed(bracketedString)):
  return None
 bracketedString = bracketedString.strip().replace('[', '').replace(']', '').replace('(', '').replace(')', '')
 if (len(bracketedString) < 1):
  return []
 splitLine = bracketedString.split(',')
 floatList = []
 for word in splitLine:
  evaluatedFloat = euclidean.getFloatFromValue(word)
  if (evaluatedFloat != None):
   floatList.append(evaluatedFloat)
 return floatList

def getFloatListFromBracketedString ( bracketedString ) : if ( not getIsBracketed ( bracketedString ) ) : return None bracketedString = bracketedString . strip ( ) . replace ( '[' , '' ) . replace ( ']' , '' ) . replace ( '(' , '' ) . replace ( ')' , '' ) if ( len ( bracketedString ) < 1 ) : return [ ] splitLine = bracketedString . split ( ',' ) floatList = [ ] for word in splitLine : evaluatedFloat = euclidean . getFloatFromValue ( word ) if ( evaluatedFloat != None ) : floatList . append ( evaluatedFloat ) return floatList
get list from a bracketed string .