Skip to content

Commit

Permalink
Merge tickets/DM-8690
Browse files Browse the repository at this point in the history
Make HDU number available to ingest.
  • Loading branch information
ctslater committed Jan 10, 2017
2 parents 5789d98 + 3d61c9d commit cb841df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/lsst/pipe/tasks/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ def getInfo(self, filename):
break
ext = self.getExtensionName(md)
if ext in extnames:
infoList.append(self.getInfoFromMetadata(md, info=phuInfo.copy()))
hduInfo = self.getInfoFromMetadata(md, info=phuInfo.copy())
# We need the HDU number when registering MEF files.
hduInfo["hdu"] = extnum - 1
infoList.append(hduInfo)
extnames.discard(ext)
return phuInfo, infoList

Expand Down

0 comments on commit cb841df

Please sign in to comment.