def parse_siteclass_proportions(line_floats):
 site_classes = {}
 if line_floats:
  for n in range(len(line_floats)):
   site_classes[n] = {'proportion': line_floats[n]}
 return site_classes

def parse_siteclass_proportions ( line_floats ) : site_classes = { } if line_floats : for n in range ( len ( line_floats ) ) : site_classes [ n ] = { 'proportion' : line_floats [ n ] } return site_classes
for models which have multiple site classes .