Skip to content

v.cluster: Add tests #5538

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

Merged
merged 3 commits into from
May 7, 2025
Merged

v.cluster: Add tests #5538

merged 3 commits into from
May 7, 2025

Conversation

Kiraschild
Copy link
Contributor

This PR introduces comprehensive testing for the v.cluster module after refining my initial approach. I've implemented robust validation for DBSCAN clustering, including parameter sensitivity tests for distance and min_points, 2D/3D handling with the -2 flag, and edge cases like minimal clusters and noise points. The tests now feature proper cleanup routines and resolve previous CI issues (like CRLF line endings)

@github-actions github-actions bot added vector Related to vector data processing Python Related code is in Python module tests Related to Test Suite labels Apr 12, 2025
echoix
echoix previously approved these changes Apr 12, 2025
@echoix echoix dismissed their stale review April 12, 2025 23:33

Just wanted to approve the CI run, not the PR yet

Copy link
Contributor

@petrasovaa petrasovaa left a comment

Choose a reason for hiding this comment

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

Please test the remaining methods as well. It's fine to do a basic regression test—just check that the number of clusters matches the expected reference value.

@wenzeslaus wenzeslaus changed the title vector: Adding Test Files for V.cluster module v.cluster: Add tests Apr 23, 2025
Copy link
Contributor

@petrasovaa petrasovaa left a comment

Choose a reason for hiding this comment

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

More tests can be added later.

@petrasovaa petrasovaa merged commit f20dbc6 into OSGeo:main May 7, 2025
29 checks passed
@github-actions github-actions bot added this to the 8.5.0 milestone May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module Python Related code is in Python tests Related to Test Suite vector Related to vector data processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants