original_docstring: 
          Use the levels in the ConservationFeature table to determine the 
          per-species value based on the specified levels.
          Input:
           {
               'widespread---trout': 0.5,
               'widespread---lamprey': 0.4,
               'widespread---salmon': 0.3,
               'widespread---steelhead': 0.2,
               'locally endemic': 0.1,
           }
  
          Return:
          species pk is the key
          { 1: 0.5, 2: 0.5, ......}
          
docstring: Use the levels in the ConservationFeature table to determine the
  per-species value based on the specified levels.
  
  
docstring_tokens: Use the levels in the ConservationFeature table to determine the per - species value based on the specified levels .
code: def process_dict(self, d):
          """
          Use the levels in the ConservationFeature table to determine the 
          per-species value based on the specified levels.
          Input:
           {
               'widespread---trout': 0.5,
               'widespread---lamprey': 0.4,
               'widespread---salmon': 0.3,
               'widespread---steelhead': 0.2,
               'locally endemic': 0.1,
           }
  
          Return:
          species pk is the key
          { 1: 0.5, 2: 0.5, ......}
          """
          ndict = {}
          for cf in ConservationFeature.objects.all():
              # TODO don't assume fields are valid within the selected geography
              levels = cf.level_string
              val = 0
              for k, v in d.items():
                  if levels.startswith(k.lower()):
                      val = v
                      break
              ndict[cf.pk] = val
          return ndict
code_tokens: def process_dict ( self , d ) : ndict = { } for cf in ConservationFeature . objects . all ( ) : levels = cf . level_string val = 0 for k , v in d . items ( ) : if levels . startswith ( k . lower ( ) ) : val = v break ndict [ cf . pk ] = val return ndict
short_docstring: Use the levels in the ConservationFeature table to determine the
  per-species value based on the specified levels.
short_docstring_tokens: Use the levels in the ConservationFeature table to determine the per - species value based on the specified levels .
comment: """
          Use the levels in the ConservationFeature table to determine the 
          per-species value based on the specified levels.
          Input:
           {
               'widespread---trout': 0.5,
               'widespread---lamprey': 0.4,
               'widespread---salmon': 0.3,
               'widespread---steelhead': 0.2,
               'locally endemic': 0.1,
           }
  
          Return:
          species pk is the key
          { 1: 0.5, 2: 0.5, ......}
          """$SEP$# TODO don't assume fields are valid within the selected geography