Uploaded image for project: 'Data Model'
  1. Data Model
  2. DAMD-55

Change catId formatting from %3d to %03d

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done (View Workflow)
    • Priority: Normal
    • Resolution: Done
    • Labels:
      None
    • Story Points:
      1

      Description

      Currently the catId component in the filenames for pfsObject, pfsSimObject and pfsZcandidates are formatted as %3d instead of %03d - ie., no zero padding:

      "pfsObject-%05d-%s-%3d-%08x-%02d-0x%08x.fits" % (tract, patch, catId, objId, nVisit % 100, pfsVisitHash)
      
      "pfsSimObject-%05d-%s-%3d-%08x.fits" % (tract, patch, catId, objId)
      "pfsZcandidates-%05d-%s-%3d-%08x-%02d-0x%08x.fits" % (tract, patch, catId, objId, nVisit % 100, pfsVisitHash)

      Please change to %03d to ensure fixed field width for all numerical components.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hassan hassan
                Reporter:
                hassan hassan
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: