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

Investigate why afw.table.IdFactory doesn't allow reserved=0

    Details

    • Type: Story
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Story Points:
      2
    • Team:
      Data Release Production

      Description

      Setting reserved=0 when constructing a source ID factory (as would be logical when there is no exposure ID to reserve bits for) strangely doesn't work; it seems to be necessary to reserve at least one bit. This may be a signedness problem (we use signed 64-bit integers for IDs to appease FITS, which is unfortunate), but we should be careful just reducing the number of available bits, as this could break code that expect to read IDs already written to disk.

      Note that any change to this code in afw.table may require changes to code in daf.butlerUtils.ExposureIdInfo as well.

        Attachments

          Issue Links

            Activity

            Hide
            swinbank John Swinbank added a comment -

            Reviewed for DM-CCB 2020-01-15. No change.

            Show
            swinbank John Swinbank added a comment - Reviewed for DM-CCB 2020-01-15. No change.

              People

              • Assignee:
                Unassigned
                Reporter:
                jbosch Jim Bosch
                Watchers:
                Jim Bosch, John Swinbank
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel