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

Propagate contiguity variable across the code #858

Merged
merged 2 commits into from
Feb 22, 2024

Conversation

paolafer
Copy link
Collaborator

This PR propagates the contiguity variable across several paolina functions, where the default value was used.
Closes #805.

@paolafer paolafer requested a review from gonzaponte February 22, 2024 09:28
Comment on lines 292 to 295
def drop_end_point_voxels(voxels: Sequence[Voxel],
energy_threshold: float,
min_vxls: int = 3,
contiguity: Contiguity = Contiguity.CORNER) -> Sequence[Voxel]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also tend to align things like this:

Suggested change
def drop_end_point_voxels(voxels: Sequence[Voxel],
energy_threshold: float,
min_vxls: int = 3,
contiguity: Contiguity = Contiguity.CORNER) -> Sequence[Voxel]:
def drop_end_point_voxels(voxels : Sequence[Voxel],
energy_threshold : float,
min_vxls : int = 3,
contiguity : Contiguity = Contiguity.CORNER) -> Sequence[Voxel]:

Copy link
Collaborator

@gonzaponte gonzaponte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed a long-standing issue. Excellent!

@carhc carhc merged commit 6b9c597 into next-exp:master Feb 22, 2024
1 check passed
@paolafer paolafer deleted the fix-contiguity branch May 2, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make_tracks does not use contiguity argument
3 participants