def populate_entry_points(entry_points):
 for entry_point in entry_points:
  name = entry_point.name
  try:
   entry_point = entry_point.load()
  except Exception as e:
   warnings.warn(AstropyUserWarning(u'{type} error occurred in entry point {name}.'.format(type=type(e).__name__, name=name)))
  else:
   if (not inspect.isclass(entry_point)):
    warnings.warn(AstropyUserWarning(u'Modeling entry point {0} expected to be a Class.'.format(name)))
   elif issubclass(entry_point, Fitter):
    name = entry_point.__name__
    globals()[name] = entry_point
    __all__.append(name)
   else:
    warnings.warn(AstropyUserWarning(u'Modeling entry point {0} expected to extend astropy.modeling.Fitter'.format(name)))

def populate_entry_points ( entry_points ) : for entry_point in entry_points : name = entry_point . name try : entry_point = entry_point . load ( ) except Exception as e : warnings . warn ( AstropyUserWarning ( u'{type} error occurred in entry point {name}.' . format ( type = type ( e ) . __name__ , name = name ) ) ) else : if ( not inspect . isclass ( entry_point ) ) : warnings . warn ( AstropyUserWarning ( u'Modeling entry point {0} expected to be a Class.' . format ( name ) ) ) elif issubclass ( entry_point , Fitter ) : name = entry_point . __name__ globals ( ) [ name ] = entry_point __all__ . append ( name ) else : warnings . warn ( AstropyUserWarning ( u'Modeling entry point {0} expected to extend astropy.modeling.Fitter' . format ( name ) ) )
this injects entry points into the astropy .