[PIPE2D-1202] Import DM-31448 Created: 19/Apr/23  Updated: 19/Apr/23  Resolved: 19/Apr/23

Status: Done
Project: DRP 2-D Pipeline
Component/s: None
Affects Version/s: None
Fix Version/s: None

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


 Description   

DM-31448 (Allow gen2 butler lookups even when fields in the dataId are not in the registry) contains a feature that we need for PFS, but will not be released by LSST (it's a Gen2 fix, and they've removed Gen2). We need to import this fix, and rhl has an additional fix (pushed to branch u/rhl/DM-31448b of daf_persistence) that generalises the fix for use with postgres.

If successful, the following code will work at Hilo without error:

butler.get("rawb", visit=90673, arm='n', spectrograph=1, hdu=1)


 Comments   
Comment by price [ 19/Apr/23 ]

Seems to be working:

>>> import lsst.obs.pfs
>>> from lsst.daf.persistence import Butler
>>> butler = Butler("/work/drp")
<stdin>:1: FutureWarning: Gen2 Butler has been deprecated (PfsButler). It will be removed sometime after v23.0 but no earlier than the end of 2021.
<stdin>:1: FutureWarning: Gen2 Butler has been deprecated (PfsMapper). It will be removed sometime after v23.0 but no earlier than the end of 2021.
lsst.CameraMapper INFO: Loading exposure registry from /work/drp/registry.pgsql
lsst.CameraMapper INFO: Loading calib registry from /work/drp/CALIB/calibRegistry.sqlite3
>>> butler.get("rawb", visit=90673, arm='n', spectrograph=1, hdu=1)
<lsst.afw.image.exposure.ExposureF object at 0x7fd07094b7f0>
Comment by price [ 19/Apr/23 ]

Note that if you're working in a notebook python command-line, you need to import lsst.obs.pfs in order to activate the fix.

Comment by price [ 19/Apr/23 ]

rhl reports that this is working for him.

Merged.

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