diff options
author | Marc Glisse <marc.glisse@inria.fr> | 2022-11-08 22:36:16 +0100 |
---|---|---|
committer | Marc Glisse <marc.glisse@inria.fr> | 2022-11-08 22:36:16 +0100 |
commit | 7c17408897a95a1f74626e8ff0ec8101ac4f92fd (patch) | |
tree | a4e3b9f429ec1f02fafc5d5dfa318f89dd349ee2 /src/python/gudhi/rips_complex.pyx | |
parent | 8804aa1580c500ed927d65c25e8b78700725338e (diff) |
Reject positional arguments in RipsComplex.__init__
Diffstat (limited to 'src/python/gudhi/rips_complex.pyx')
-rw-r--r-- | src/python/gudhi/rips_complex.pyx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/gudhi/rips_complex.pyx b/src/python/gudhi/rips_complex.pyx index a0924cd6..d748f91e 100644 --- a/src/python/gudhi/rips_complex.pyx +++ b/src/python/gudhi/rips_complex.pyx @@ -41,7 +41,7 @@ cdef class RipsComplex: cdef Rips_complex_interface thisref # Fake constructor that does nothing but documenting the constructor - def __init__(self, points=None, distance_matrix=None, + def __init__(self, *, points=None, distance_matrix=None, max_edge_length=float('inf'), sparse=None): """RipsComplex constructor. @@ -64,7 +64,7 @@ cdef class RipsComplex: """ # The real cython constructor - def __cinit__(self, points=None, distance_matrix=None, + def __cinit__(self, *, points=None, distance_matrix=None, max_edge_length=float('inf'), sparse=None): if sparse is not None: if distance_matrix is not None: |