Closed yymao closed 4 years ago
ok well, that won't work, it will complain that the id
is duplicated between the original catalog and the metacal catalog, that was the entire reason I did this .....
But for checking, we can probably rename the id
column to metacal_id
and then we can keep it.
Who is the "it" that complains about the duplicated column?
The composite catalog reader, when the two catalogs have columns with the same name
It won't / shouldn't complain -- we made the composite feature so that we can overwrite columns in the main catalog.
Can you show a case where it complains?
Ah.... hummmm :-/.... if you say so ^^' Can we test your PR on one example and see what happens? I need to remind myself where to find data files...
I mean, the old metacal files have id
column and it works fine in GCR/composite. See https://github.com/LSSTDESC/gcr-catalogs/blob/master/GCRCatalogs/dc2_metacal.py#L65
Removing the id
column is a new thing (and I actually had to change the reader for this, see https://github.com/LSSTDESC/gcr-catalogs/pull/419/files#diff-a607bcf79b5184cd48390a8054da24e8L65, which BTW is pending a review from a good friend of mine :) )
@EiffL, would it be ok to merge this?
yes, this worked last time I tried it
Thank you @EiffL! Merging..
if this needs to go to DR6, DC2-prod needs a patch release quick..... possibly cherry picking
It's not critical since it doesn't affect science but just helps with debugging.
As title. While it takes a bit of space, this will save us much trouble debugging.