[PIPE2D-686] butler.get fails for raw and dark Created: 17/Dec/20 Updated: 29/Jan/22 Resolved: 08/Jul/21 |
|
| Status: | Done |
| Project: | DRP 2-D Pipeline |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Story | Priority: | Normal |
| Reporter: | rhl | Assignee: | price |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Story Points: | 2 |
| Sprint: | 2DDRP-2021 A 2, 2DDRP-2021 A3 |
| Description |
|
Using dataDir = ("/projects/HSC/PFS/Subaru") calibDir = "/projects/HSC/PFS/Subaru/CALIB-price" butler = dafPersist.Butler(dataDir, calibRoot=calibDir) dataId = dict(visit=34341, spectrograph=1, arm='r') on tiger, butler.get('raw', dataId) fails with OperationalError : no such column: filter (and adding filter=dataId['arm'] works. Also, butler.get('dark', dataId) fails with OperationalError: no such column: spectrograph. The workaround is: taiObs = butler.queryMetadata('raw', ['taiObs'], dataId)[0] dark = butler.get('dark', dataId, taiObs=taiObs) bias has the same problem as dark |
| Comments |
| Comment by price [ 08/Jul/21 ] |
|
This works now (I think I fixed it in >>> import lsst.daf.persistence as dafPersist >>> dataDir = ("/projects/HSC/PFS/Subaru") >>> calibDir = "/projects/HSC/PFS/Subaru/CALIB-price" >>> butler = dafPersist.Butler(dataDir, calibRoot=calibDir) CameraMapper INFO: Loading exposure registry from /projects/HSC/PFS/Subaru/registry.sqlite3 CameraMapper INFO: Loading calib registry from /projects/HSC/PFS/Subaru/CALIB-price/calibRegistry.sqlite3 >>> dataId = dict(visit=34341, spectrograph=1, arm='r') >>> butler.get('raw', dataId) <lsst.afw.image.exposure.exposure.ExposureU object at 0x2b261520d110> >>> butler.get('dark', dataId) <lsst.afw.image.exposure.exposure.ExposureF object at 0x2b2615275298> |