[PIPE2D-122] Write function to persist pfsArm file Created: 15/Nov/16  Updated: 17/Aug/18  Resolved: 17/Aug/18

Status: Won't Fix
Project: DRP 2-D Pipeline
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Story Priority: Major
Reporter: aritter Assignee: price
Resolution: Won't Fix Votes: 0
Labels: SM1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to PIPE2D-80 Task-ify code for creating normalized... Done
Story Points: 1
Epic Link: SM1 Phase Two

 Description   

md = arcExp.getMetadata().toDict()
key = "PFSCONFIGID"
if key in md:
pfsConfigId = md[key]
else:
self.log.info('No pfsConfigId is present in postISRCCD file for dataId %s' %
str(dataId.items()))
pfsConfigId = 0x0

pfsConfig = butler.get("pfsConfig", pfsConfigId=pfsConfigId, dateObs=dataId["dateObs"])

pfsArm = spectrumSetToPfsArm(pfsConfig, spectrumSetFromProfile,
dataId["visit"], dataId["spectrograph"], dataId["arm"])
butler.put(PfsArmIO(pfsArm), 'pfsArm', dataId)

should be encapsulated as a function as it is the standard way to persist a pfsArm file.



 Comments   
Comment by price [ 06/Jul/18 ]

I think this might be addressed by changes in PIPE2D-280.

Comment by price [ 16/Aug/18 ]

Following PIPE2D-280, you can butler.put(spectrumSet, "pfsArm"), e.g., here.

Comment by hassan [ 17/Aug/18 ]

Re-assigned to @price to fix (hope that's ok)

Comment by price [ 17/Aug/18 ]

Yes, this was done in PIPE2D-280.

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