lsst.afw.table.AmpInfoTable and building the detector files

Hi,

I am trying to build the fits files to describe the ccds for the obs_vista package. I am modifying the example buildDetector.py script from obs_goto. This is throwing the following error:

"AttributeError: module 'lsst.afw.table' has no attribute 'AmpInfoTable'"

Which is also thrown if I try to import AmpInfoTable anywhere. Has this class been deprecated or moved to another location? It appears to be a class in https://github.com/lsst/afw/blob/master/include/lsst/afw/table/fwd.h

Perhaps there is a more up to date example script for making the camera files? obs_subaru doesn’t appear to have such a script on GitHub.

Many thanks,

Raphael.

I believe it’s now recommended to use yamlCamera.makeCamera(): https://github.com/lsst/obs_base/blob/master/python/lsst/obs/base/yamlCamera.py

You might want to take a look at that.

(Also note: I do not recommend trying to understand or emulate https://github.com/lsst/obs_lsst/blob/master/python/lsst/obs/lsst/script/generateCamera.py)

Great thanks.