(self, dimensions=None, top_dimensional_cells=None,
                 perseus_file='')
CubicalComplex constructor from dimensions and
        top_dimensional_cells or from a Perseus-style file name.
        :param dimensions: A list of number of top dimensional cells.
        :type dimensions: list of int
        :param top_dimensional_cells: A list of cells filtration values.
        :type top_dimensional_cells: list of double
        Or
        :param perseus_file: A Perseus-style file name.
        :type perseus_file: string
CubicalComplex constructor from dimensions and
        top_dimensional_cells or from a Perseus-style file name.
        :param dimensions: A list of number of top dimensional cells.
        :type dimensions: list of int
        :param top_dimensional_cells: A list of cells filtration values.
        :type top_dimensional_cells: list of double
        Or
        :param perseus_file: A Perseus-style file name.
        :type perseus_file: string
CubicalComplex constructor from dimensions and top_dimensional_cells or from a Perseus - style file name . : param dimensions : A list of number of top dimensional cells . : type dimensions : list of int : param top_dimensional_cells : A list of cells filtration values . : type top_dimensional_cells : list of double Or : param perseus_file : A Perseus - style file name . : type perseus_file : string
def __init__(self, dimensions=None, top_dimensional_cells=None,
                 perseus_file=''):
        """CubicalComplex constructor from dimensions and
        top_dimensional_cells or from a Perseus-style file name.
        :param dimensions: A list of number of top dimensional cells.
        :type dimensions: list of int
        :param top_dimensional_cells: A list of cells filtration values.
        :type top_dimensional_cells: list of double
        Or
        :param perseus_file: A Perseus-style file name.
        :type perseus_file: string
        """
        self.thisptr = None
        self.pcohptr = None
        if (dimensions is not None) and \
                (top_dimensional_cells is not None) and \
                (perseus_file == ''):
            self.thisptr = \
                Bitmap_cubical_complex_base_interface(dimensions,
                                                      top_dimensional_cells)
        elif (dimensions is None) and \
             (top_dimensional_cells is None) and (perseus_file != ''):
            if os.path.isfile(perseus_file):
                self.thisptr = Bitmap_cubical_complex_base_interface(
                    str.encode(perseus_file))
            else:
                print("file " + perseus_file + " not found.")
        else:
            print("CubicalComplex can be constructed from dimensions and "
                  "top_dimensional_cells or from a Perseus-style file name.")
def __init__ ( self , dimensions = None , top_dimensional_cells = None , perseus_file = '' ) : self . thisptr = None self . pcohptr = None if ( dimensions is not None ) and ( top_dimensional_cells is not None ) and ( perseus_file == '' ) : self . thisptr = Bitmap_cubical_complex_base_interface ( dimensions , top_dimensional_cells ) elif ( dimensions is None ) and ( top_dimensional_cells is None ) and ( perseus_file != '' ) : if os . path . isfile ( perseus_file ) : self . thisptr = Bitmap_cubical_complex_base_interface ( str . encode ( perseus_file ) ) else : print ( "file " + perseus_file + " not found." ) else : print ( "CubicalComplex can be constructed from dimensions and " "top_dimensional_cells or from a Perseus-style file name." )