You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
uxarray/utils/computing.py not used anywhere, and pyfma not in pyproject.toml #1602
uxarray/utils/computing.py internally imports the pyfma package, which is not included in uxarray's dependencies, not even as an optional dependency, and it is also not being used anywhere else in uxarray, from what I can tell. Noticed this while working on #1575.
Additionally, none of the methods from uxarray/utils/computing.py are being used anywhere else in the entire uxarray codebase. I cannot tell why this module exists, from looking through the code.
Two possible solutions:
Remove the uxarray/utils/computing.py module.
Keep the module, but document why it exists, and handle pyfma package dependency appropriately.
Realized I should probably ping @hongyuchen1030 on this one, as the person who implemented many (all?) of the methods in this module. Do you know if there are any imminent plans to incorporate uxarray/utils/computing.py functionality elsewhere in uxarray, or if it already being used downstream anywhere?
To clarify, I'm not trying to push towards removing this module, rather, I mostly just want to understand why it exists, and help that reason remain clear for anyone who looks into it in the future. I would only want to remove it if there really is no current/planned use case for it.
Realized I should probably ping @hongyuchen1030 on this one, as the person who implemented many (all?) of the methods in this module. Do you know if there are any imminent plans to incorporate uxarray/utils/computing.py functionality elsewhere in uxarray, or if it already being used downstream anywhere?
To clarify, I'm not trying to push towards removing this module, rather, I mostly just want to understand why it exists, and help that reason remain clear for anyone who looks into it in the future. I would only want to remove it if there really is no current/planned use case for it.
This has already been addressed in #1513. uxarray/utils/computing.py shouldn't be removed, since it serves as the main algorithmic highlight of UXarray, providing the EFT-based floating-point operators. @rajeeja has already cleaned it up in #1513, so no further action is needed here before this branch is merged.
For context: this module predates Python's support for the FMA instruction, and at the time we weren't able to find a suitable substitute. We've since dropped our dependence on it, but an actual cleanup pass after #1513 merges is definitely recommended.
Ah, great! Thank you for your response @hongyuchen1030, that all makes sense. Taking a closer look there, I now see that the proposed changes do indeed clarify why the module exists as there is a clear docstring at the top of the file, and its methods will be imported elsewhere in uxarray. Additionally, it looks like the pyfma package would be removed entirely.
Because that would fully close this issue, I have linked that PR to this issue, so this issue should be closed automatically whenever that PR gets merged.
Activity
Sevans711 commentedon Jul 22, 2026
Realized I should probably ping @hongyuchen1030 on this one, as the person who implemented many (all?) of the methods in this module. Do you know if there are any imminent plans to incorporate uxarray/utils/computing.py functionality elsewhere in uxarray, or if it already being used downstream anywhere?
To clarify, I'm not trying to push towards removing this module, rather, I mostly just want to understand why it exists, and help that reason remain clear for anyone who looks into it in the future. I would only want to remove it if there really is no current/planned use case for it.
hongyuchen1030 commentedon Jul 25, 2026
This has already been addressed in #1513.
uxarray/utils/computing.pyshouldn't be removed, since it serves as the main algorithmic highlight of UXarray, providing the EFT-based floating-point operators. @rajeeja has already cleaned it up in #1513, so no further action is needed here before this branch is merged.For context: this module predates Python's support for the FMA instruction, and at the time we weren't able to find a suitable substitute. We've since dropped our dependence on it, but an actual cleanup pass after #1513 merges is definitely recommended.
Sevans711 commentedon Jul 27, 2026
Ah, great! Thank you for your response @hongyuchen1030, that all makes sense. Taking a closer look there, I now see that the proposed changes do indeed clarify why the module exists as there is a clear docstring at the top of the file, and its methods will be imported elsewhere in uxarray. Additionally, it looks like the
pyfmapackage would be removed entirely.Because that would fully close this issue, I have linked that PR to this issue, so this issue should be closed automatically whenever that PR gets merged.
erogluorhan commentedon Jul 27, 2026
Thanks a lot for looking into this! I am glad it will get closed with #1513