def __str__(self):
        """ Outputs a string representation of this object """

        result = []

        if len(self._dims) > 0:
            table, headers = self._gen_dimension_table()
            result.append("Registered Dimensions:\n%s\n\n" % (
                tabulate(table, headers=headers),))

        if len(self._arrays) > 0:
            table, headers = self._gen_array_table()
            table.append(['Local Memory Usage', self.mem_required(), '', ''])
            result.append("Registered Arrays:\n%s\n\n" % (
                tabulate(table, headers=headers),))

        if len(self._properties) > 0:
            table, headers = self._gen_property_table()
            result.append("Registered Properties:\n%s\n\n" % (tabulate(
                table, headers=headers),))

        return ''.join(result)
def __str__ ( self ) : result = [ ] if len ( self . _dims ) > 0 : table , headers = self . _gen_dimension_table ( ) result . append ( "Registered Dimensions:\n%s\n\n" % ( tabulate ( table , headers = headers ) , ) ) if len ( self . _arrays ) > 0 : table , headers = self . _gen_array_table ( ) table . append ( [ 'Local Memory Usage' , self . mem_required ( ) , '' , '' ] ) result . append ( "Registered Arrays:\n%s\n\n" % ( tabulate ( table , headers = headers ) , ) ) if len ( self . _properties ) > 0 : table , headers = self . _gen_property_table ( ) result . append ( "Registered Properties:\n%s\n\n" % ( tabulate ( table , headers = headers ) , ) ) return '' . join ( result )
Outputs a string representation of this object