Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring/step2 #24

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

Conversation

rea1991
Copy link
Contributor

@rea1991 rea1991 commented Nov 9, 2024

No description provided.

Use of a single-leading underscore as "internal use" indicator.
This was done to improve code clarity and allow unit testing of
the function.
- run_persistence replaces RunPersistence
- variable names are now lower-case
- clusters of lines are compactified
- FilterExtremumPointsByPersistence is now
  filter_extremum_points_by_persistence
- Variable names are now lower-case and employ underscores
- DiversifyExtremumPointsAndPersistence is now
  diversify_extremum_points_and_persistence
- Variable names are now lower-case and employ underscores
Deletion of the function plot_persistence, originally meant to plot
persistence diagrams.
Default min_persistence should be 0, which is the lowest possible
value. Topological persistence has values in [0, +inf].
This was done to improve code clarity and allow unit testing of
the function. The new function, _sort_extrema_by_coordinate,
sorts local extremum points w.r.t. Cartesian coordinates rather
than their topological persistence.
To improve readibility and simplify unit testing, _find_seeds_in_RoI
determines all the seeds that are between two boundary values (which
will be the matricial coordinates of a region of interest)
@rea1991 rea1991 added testing PRs modifying tests or test infrastructure refactor Rewriting code in better ways, e.g., to ease unit testing labels Nov 9, 2024
@rea1991 rea1991 requested a review from robomics November 9, 2024 15:05
@robomics robomics marked this pull request as draft November 9, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Rewriting code in better ways, e.g., to ease unit testing testing PRs modifying tests or test infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant