Skip to content

uxarray/utils/computing.py not used anywhere, and pyfma not in pyproject.toml #1602

Closed

Description

@Sevans711

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:

  1. Remove the uxarray/utils/computing.py module.
  2. Keep the module, but document why it exists, and handle pyfma package dependency appropriately.

Activity

  1. added
    documentation
    dependencies
    on Jul 21, 2026
  2. Sevans711 commented on Jul 22, 2026

    @Sevans711
    CollaboratorAuthor

    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.

  3. hongyuchen1030 commented on Jul 25, 2026

    @hongyuchen1030
    Contributor

    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.

  4. moved this from 📚 Backlog to ✅ Done in UXarray Developmenton Jul 25, 2026
  5. moved this from ✅ Done to 🏗 In progress in UXarray Developmenton Jul 25, 2026
  6. Sevans711 commented on Jul 27, 2026

    @Sevans711
    CollaboratorAuthor

    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.

  7. moved this from 🏗 In progress to No status in UXarray Developmenton Jul 27, 2026
  8. moved this to 👀 In review in UXarray Developmenton Jul 27, 2026
  9. erogluorhan commented on Jul 27, 2026

    @erogluorhan
    Member

    Thanks a lot for looking into this! I am glad it will get closed with #1513

  10. moved this from 👀 In review to ✅ Done in UXarray Developmenton Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesdocumentation

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions