def extract_list (data_str, to_float=False):
	""" Extract a list of floating point values from a string
	"""
	split_str = data_str.split(',')
	if to_float == True:
		split_str = [float(x) for x in split_str]
	return split_str