(self, persistence_file='')
Write the persistence intervals of the simplicial complex in a
        user-given file name.
        :param persistence_file: The specific dimension.
        :type persistence_file: string.
        :note: intervals_in_dim function requires
            :func:`persistence()<gudhi.SimplexTree.persistence>`
            function to be launched first.
Write the persistence intervals of the simplicial complex in a
        user-given file name.
        :param persistence_file: The specific dimension.
        :type persistence_file: string.
        :note: intervals_in_dim function requires
            :func:`persistence()<gudhi.SimplexTree.persistence>`
            function to be launched first.
Write the persistence intervals of the simplicial complex in a user - given file name . : param persistence_file : The specific dimension . : type persistence_file : string . : note : intervals_in_dim function requires : func : persistence () <gudhi . SimplexTree . persistence > function to be launched first .
def write_persistence_diagram(self, persistence_file=''):
        """Write the persistence intervals of the simplicial complex in a
        user-given file name.
        :param persistence_file: The specific dimension.
        :type persistence_file: string.
        :note: intervals_in_dim function requires
            :func:`persistence()<gudhi.SimplexTree.persistence>`
            function to be launched first.
        """
        if self.pcohptr is not None:
            if persistence_file != '':
                self.pcohptr.write_output_diagram(str.encode(persistence_file))
            else:
                print("`persistence_file` must be specified")
        else:
            print("`intervals_in_dim` requires persistence function to be "
                  "launched first.")
def write_persistence_diagram ( self , persistence_file = '' ) : if self . pcohptr is not None : if persistence_file != '' : self . pcohptr . write_output_diagram ( str . encode ( persistence_file ) ) else : print ( "`persistence_file` must be specified" ) else : print ( "`intervals_in_dim` requires persistence function to be " "launched first." )