Skip to content

Implement backend conformance tests and enhance tree topology handling#1

Merged
TobiBu merged 1 commit intomainfrom
backend
Feb 23, 2026
Merged

Implement backend conformance tests and enhance tree topology handling#1
TobiBu merged 1 commit intomainfrom
backend

Conversation

@TobiBu
Copy link
Owner

@TobiBu TobiBu commented Feb 23, 2026

  • Added shared backend fixtures for conformance tests in backend_fixtures.py.
  • Created comprehensive backend conformance tests in test_backend_conformance.py to validate tree construction and interaction computations.
  • Enhanced the Tree class to support dynamic tree builders via a TreeBuildRequest dataclass, allowing for more flexible tree construction.
  • Introduced protocols for tree structure and topology capabilities in protocols.py, improving type safety and clarity.
  • Updated geometry and interaction implementations to accept topology carriers, ensuring compatibility with various tree structures.
  • Added experimental KD-tree API tests in test_kdtree_api.py to validate neighbor-query functionalities.
  • Refactored tree-related functions to derive properties like node levels and offsets directly from tree structures, promoting code reuse and reducing redundancy.
  • Registered new tree builders and ensured existing ones are compatible with the new request structure.

Validation

  • pytest
  • black --check .
  • isort --check-only .
  • pydoclint .

- Added shared backend fixtures for conformance tests in `backend_fixtures.py`.
- Created comprehensive backend conformance tests in `test_backend_conformance.py` to validate tree construction and interaction computations.
- Enhanced the `Tree` class to support dynamic tree builders via a `TreeBuildRequest` dataclass, allowing for more flexible tree construction.
- Introduced protocols for tree structure and topology capabilities in `protocols.py`, improving type safety and clarity.
- Updated geometry and interaction implementations to accept topology carriers, ensuring compatibility with various tree structures.
- Added experimental KD-tree API tests in `test_kdtree_api.py` to validate neighbor-query functionalities.
- Refactored tree-related functions to derive properties like node levels and offsets directly from tree structures, promoting code reuse and reducing redundancy.
- Registered new tree builders and ensured existing ones are compatible with the new request structure.
@TobiBu TobiBu merged commit 10f37ea into main Feb 23, 2026
1 check failed
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.

1 participant