Conversation
|
Thanks @Dimitra-Kyriakopoulou. can you clarify? This is lifting the |
|
Dear Professor Thielemans,
THANK YOU WHOLEHEARTEDLY FOR YOUR MESSAGE!!
Yes, the intent was to lift __array_priority__ to ArrayContainer, i.e. to the common Python base for SIRF array containers, instead of relying on per-subclass behavior. That makes NumPy mixed expressions prefer SIRF container arithmetic more consistently. So it is a lift within the Python array-container branch (not to the top of the whole SIRF hierarchy).
Also i attach the pdf which describes my 1st attempt to project 6: i uploaded in
…________________________________
Από: Kris Thielemans ***@***.***>
Στάλθηκε: Τετάρτη, 11 Μαρτίου 2026 12:40 μμ
Προς: SyneRBI/SIRF ***@***.***>
Κοιν.: Dimitra-Kyriakopoulou ***@***.***>; Mention ***@***.***>
Θέμα: Re: [SyneRBI/SIRF] SIRF #1357 (PR #1378)
[https://avatars.githubusercontent.com/u/6362141?s=20&v=4]KrisThielemans left a comment (SyneRBI/SIRF#1378)<#1378 (comment)>
Thanks @Dimitra-Kyriakopoulou<https://github.com/Dimitra-Kyriakopoulou>. can you clarify? This is lifting the _array_priority_ to top-level in the SIRF hierarchy?
—
Reply to this email directly, view it on GitHub<#1378 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACZD3XRJC6M6OA5FKWJK4MT4QE7BZAVCNFSM6AAAAACWN7X7B6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DAMZYGI2DEOJUG4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
|
ok. @evgueni-ovtchinnikov will review this. thanks! |
|
Dear Professor @evgueni-ovtchinnikov and Professor @KrisThielemans, I AM DEEPLY SORRY, |
|
no problem. Closing this. |
Changes in this pull request
-- Fixed #1357 by applying the same direction already discussed upstream, not a new design.
This patch follows the
__array_priority__/ reverse-operator approach that later appears in #1373. #1358 isalready merged.
-- Changes:
__array_priority__ = 10toArrayContainer__radd__,__rsub__, and__rtruediv__toDataContainersrc/common/Utilities.py-- Checked the reported cases:
ay * x,1 + x,ax + x,ax - x,ay / x,2 / xThese now return SIRF containers instead of
numpy.ndarrayorTypeError.Testing performed
#1357repro on the patched branchsrc/xSTIR/pSTIR/tests/tests_data_container_algebra.py -vRelated issues
Checklist before requesting a review
Contribution Notes
Please read and adhere to the contribution guidelines.
Please tick the following: