Skip to content

docs: add type hints and mathematical docstrings to ad_projector#495

Open
ritu3534 wants to merge 1 commit intoNNPDF:masterfrom
ritu3534:master
Open

docs: add type hints and mathematical docstrings to ad_projector#495
ritu3534 wants to merge 1 commit intoNNPDF:masterfrom
ritu3534:master

Conversation

@ritu3534
Copy link

Summary
This PR adds structured Google-style docstrings and type hints to the ad_projector and ad_projectors functions in basis_rotation.py.

Changes

  • Added type hints (tuple, int, bool, np.ndarray) for better IDE support and type safety.

  • Included mathematical descriptions of the projection logic from flavor to evolution basis.

Verification

  • Verified locally using pytest in a WSL2/Ubuntu environment.

  • Result: All 4 tests in tests/eko/test_basis_rotation.py passed successfully.

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