Comments (4)
This handling of __
is a general Python thing: https://docs.python.org/3/tutorial/classes.html#private-variables
In [1]: class A:
...: def __x(self):
...: return True
...: a = A()
...: a.__x()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In [1], line 5
3 return True
4 a = A()
----> 5 a.__x()
AttributeError: 'A' object has no attribute '__x'
In [2]: a._A__x()
Out[2]: True
from gudhi-devel.
A reminder on this #777 (comment)
from gudhi-devel.
It seems that the only issue is using the functions __is_defined()
and __is_persistence_defined()
in tests. @VincentRouvreau , what do you prefer?
- remove the assertions on those 2 functions from the tests
- rename them so they start with a single underscore
- on the day we switch to cython3, update the tests to
_SimplexTree__is_defined
, etc - other
I think I am in favor of option 2 (it is simple, compatible with both versions of cython, and I don't think the protection offered by the double underscore is that important here, but I could be wrong). We could also remove one underscore from persistence_graphical_tools.__min_birth_max_death
while we are at it.
from gudhi-devel.
Cython3 is now out, and at least one macosx+windows CI job already uses it and fails (the exception specifications don't match)
/Users/runner/work/gudhi-devel/gudhi-devel/src/python/gudhi/simplex_tree.pyx:613:65: Cannot assign type 'bool (vector[int], void *) except? -1' to 'blocker_func_t'
from gudhi-devel.
Related Issues (20)
- Explain requirements
- multiple instantiations of Simplex_tree hidden in SimplexTree HOT 3
- `master` default branch should be renamed `main`
- sklearn set_output
- Show progress in transformers
- Use the new Simplex_tree.clear function HOT 2
- BettiCurve.fit_transform missing y=None param
- BettiCurve: `not X` is not a safe way to test for emptiness
- Identifying the simplicies involved in forming a feature in persistence diagram HOT 2
- Unsafe Cech with Epick_d?
- Atol : tests are failing with scikit-learn 1.4.0 HOT 4
- Representations - kernel_methods : Undefined name `metric` HOT 2
- Periodic alpha complex with DTM filtration HOT 4
- [Representations Module] New `__call__` strategy does not retrieve attributes HOT 6
- Mix of random generators in tangential complex
- [Representations Module] ComplexPolynomial class does not update threshold automatically HOT 2
- Re-generate doxygen headers HOT 1
- [Cover Complex] Make KeplerMapper a Python function HOT 1
- [ToMATo] relate PD points to clusters HOT 1
- [Python wheels] Python 3.12 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gudhi-devel.