Skip to content

Conversation

siliataider
Copy link
Contributor

@siliataider siliataider commented Oct 3, 2025

This Pull request:

Changes or fixes:

The operators for TH2* and TH3* were declared only as friend functions inside the class, without matching free-function declarations in the header, which prevented them from being picked up in BuildScopeProxyDict and therefore could not be exposed in Python.

This PR adds the missing free-function declarations for TH2* and TH3* operators ensuring that the proper Python bindings are generated.

Checklist:

  • tested changes locally

This PR fixes #20014

@siliataider siliataider self-assigned this Oct 3, 2025
@siliataider siliataider changed the title Fix TH2 arithmetic operators in Python Fix TH2 and TH3 arithmetic operators in Python Oct 3, 2025
@siliataider siliataider marked this pull request as ready for review October 3, 2025 15:31
Copy link
Member

@vepadulano vepadulano left a comment

Choose a reason for hiding this comment

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

🚀

Copy link
Member

@vepadulano vepadulano left a comment

Choose a reason for hiding this comment

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

LGTM but I would wait to see the CI green before merging (or at least indications that these new tests are succeeding on all platforms)

Copy link

github-actions bot commented Oct 3, 2025

Test Results

    22 files      22 suites   3d 15h 58m 37s ⏱️
 3 687 tests  3 687 ✅ 0 💤 0 ❌
79 218 runs  79 218 ✅ 0 💤 0 ❌

Results for commit f5d10bd.

♻️ This comment has been updated with latest results.

@siliataider siliataider merged commit 641ad3e into root-project:master Oct 4, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TH2D operator+ not working in Python
3 participants