def _repr__base(self, rich_output=False):
        """
        Representation of the object

        :param rich_output: if True, generates HTML, otherwise text
        :return: the representation
        """

        # Make a dictionary which will then be transformed in a list

        repr_dict = collections.OrderedDict()

        key = '%s (point source)' % self.name

        repr_dict[key] = collections.OrderedDict()
        repr_dict[key]['position'] = self._sky_position.to_dict(minimal=True)
        repr_dict[key]['spectrum'] = collections.OrderedDict()

        for component_name, component in self.components.iteritems():

            repr_dict[key]['spectrum'][component_name] = component.to_dict(minimal=True)

        return dict_to_list(repr_dict, rich_output)
def _repr__base ( self , rich_output = False ) : repr_dict = collections . OrderedDict ( ) key = '%s (point source)' % self . name repr_dict [ key ] = collections . OrderedDict ( ) repr_dict [ key ] [ 'position' ] = self . _sky_position . to_dict ( minimal = True ) repr_dict [ key ] [ 'spectrum' ] = collections . OrderedDict ( ) for component_name , component in self . components . iteritems ( ) : repr_dict [ key ] [ 'spectrum' ] [ component_name ] = component . to_dict ( minimal = True ) return dict_to_list ( repr_dict , rich_output )
Representation of the object

        :param rich_output: if True, generates HTML, otherwise text
        :return: the representation