I modified lsst.afw.table.AmpInfoCatalog
by adding a field and changing the type of another field. My question is: how to convert saved catalogs to the new format?
Things I have tried that fail:
- Read the old data using the new format. That fails, as one might expect.
- Read the old data as a
SimpleCatalog
. That fails with a complaint about being the wrong data type. - Reading the data with
astropy.table
. That works, and conversion is trivial, but the converted result cannot be read by afw.table, apparently because the flag fields aren’t right.
The only solutions I have thought of are to regenerate all the tables or temporarily add two versions of AmpInfoTable
to afw.table. I am hoping there is a more straightforward solution. I could probably manage without backwards compatibility, if that helps.