[DAMD-55] Change catId formatting from %3d to %03d Created: 06/May/19  Updated: 24/May/19  Resolved: 24/May/19

Status: Done
Project: Data Model
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Story Priority: Normal
Reporter: hassan Assignee: hassan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Blocks
blocks DAMD-57 Implement range of datamodel changes Done
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.



 Comments   
Comment by hassan [ 24/May/19 ]

Merged to master (commit cba5ab3).

Generated at Sat Feb 10 15:33:46 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.