lsst / afw

LSST data management: pipeline library code and primitives including images and tables
http://dm.lsst.org/
21 stars 22 forks source link

DM-44352: Prevent overwriting existing detector mapping #743

Closed cmsaunders closed 2 months ago

cmsaunders commented 2 months ago

The existing afw code assumes a simple model for the pixels->focal plane mapping and automatically sets that for each detector. This change adds a check to see whether these mappings have already been defined, and if so, skips applying the default simple model.

cmsaunders commented 2 months ago

Yes, that's always a good idea. I added a test that builds a camera with a custom detector transform and checks that it is not the same as the one that gets added by default, which uses the detector orientation and pixel size.