Closed yymao closed 6 years ago
Thanks, @wmwv. Do you want me to help regenerate the trimmed files for 1.2i, or are you already on it?
Re-generating now.
Sorry, didn't see this until now. I was trying to regenerate those trim files and found the script doesn't work, so I opened another PR #298.
BTW, @wmwv, you need to use GCRCatalogs 0.9.2 (current master) for the trim_tract_cat.py
to work properly.
I just did and it didn't work.
Which thing didn't work? The trim files you just generated seem to be working fine. (BTW, I'm happy to move this conversation to slack.)
Resolved with updated trim_schema.yaml
file. Thanks.
This PR updates the
columns_to_keep
in thetrim_tract_cat.py
script. The hard-codedcolumns_to_keep
is now removed, and is replaced by using the quantity modifiers defined inGCRCatalogs.dc2_object.DC2ObjectCatalog
.We also created a dummy class
DummyDC2ObjectCatalog
to make the script more readable.This PR partly fixes #296 (as one still need to regenerate the trimmed files).