Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-10313

Export INT_MIN to python and use it to initialise hdu as appropriate

    XMLWordPrintable

    Details

    • Type: Story
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: afw
    • Labels:
      None

      Description

      We use INT_MIN to mean "use the first HDU" in C++. Occasionally we need to do this in python (e.g. in configs), which can be written -(1 << 31), but it'd be better to have the value available as a symbol (e.g. INT_MIN!).

      An alternative would be to support None, but my understanding is that this is painful, producing much duplication in pybind11 wrappers.

        Attachments

          Activity

          Hide
          jbosch Jim Bosch added a comment -

          Marking this as worth keeping (moving to new epic) in a triage pass. When we do it, let's call the symbol something like FIRST_NONEMPTY_HDU so it's only used for this purpose, and maybe we can change the value or even use an enum or special type with the same symbol in the future.

          Show
          jbosch Jim Bosch added a comment - Marking this as worth keeping (moving to new epic) in a triage pass. When we do it, let's call the symbol something like FIRST_NONEMPTY_HDU so it's only used for this purpose, and maybe we can change the value or even use an enum or special type with the same symbol in the future.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rhl Robert Lupton
            Watchers:
            Jim Bosch, Robert Lupton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Jenkins Builds

                No builds found.