[PIPE2D-1306] reduceProfiles.processExposure inconsistent returned Struct cause failures Created: 29/Sep/23  Updated: 29/Sep/23  Resolved: 29/Sep/23

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

Type: Bug Priority: Normal
Reporter: arnaud.lefur Assignee: arnaud.lefur
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to PIPE2D-1301 add support for reduceProfiles in gen... Done
Story Points: 1

 Description   

reduceProfiles.processExposure currently returns a Struct which is inconsistent with the one returned by self.reduceExposure.runDataRef which cause the command to fail :

 File "/work/stack_INFRA-312/stack/miniconda3-py38_4.9.2-3.0.0/Linux64/pipe_base/g590c34a36e+5da9528084/python/lsst/pipe/base/cmdLineTask.py", line 436, in __call__
    result = self.runTask(task, dataRef, kwargs)
  File "/work/stack_INFRA-312/stack/miniconda3-py38_4.9.2-3.0.0/Linux64/pipe_base/g590c34a36e+5da9528084/python/lsst/pipe/base/cmdLineTask.py", line 504, in runTask
    return task.runDataRef(dataRef, **kwargs)
  File "/work/stack_INFRA-312/stack/miniconda3-py38_4.9.2-3.0.0/Linux64/drp_stella/w.2023.37/python/pfs/drp/stella/reduceProfiles.py", line 191, in runDataRef
    normExp = self.combine([norm.exposureList[0] for norm in normList])
  File "/work/stack_INFRA-312/stack/miniconda3-py38_4.9.2-3.0.0/Linux64/drp_stella/w.2023.37/python/pfs/drp/stella/reduceProfiles.py", line 191, in <listcomp>
    normExp = self.combine([norm.exposureList[0] for norm in normList])
AttributeError: 'Struct' object has no attribute 'exposureList'


 Comments   
Comment by arnaud.lefur [ 29/Sep/23 ]

The bug has actually been found and fixed in PIPE2D-1301

Comment by price [ 29/Sep/23 ]

I believe I've fixed this on PIPE2D-1301.

Generated at Sat Feb 10 16:05:49 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.