Looks good. Confirmed it works (left= mask before, right= mask after)

I put two commits on pipe_tasks u/yusra/DM-17300 for you to cherry-pick: https://github.com/lsst/pipe_tasks/tree/u/yusra/DM-17300 The metadata-check commit is optional. More info on that:
brightObjectMasks.table.getMetadata() (which in this case is ‘patch’: ‘5,4’, ‘tract’: 0}}doesn’t match the dataID which is {{'abstract_filter': 'r', 'skymap': 'ci_hsc', 'tract': 0, 'patch': 69 The code that checks the header: https://github.com/lsst/pipe_tasks/commit/a6db3fba5ff6b925e49eb8b8039fb54bb818a66c#diff-f9cf63fcf2aed29eec448bae6d243b5fR595
The headers look like:
[yusra@lsst-dev01 0]$ more BrightObjectMask-0-5,4-HSC-R.reg
|
# BRIGHT STAR CATALOG: Jean Coupon
|
# GENERATED ON: 2017-06-04
|
# TRACT: 0
|
# PATCH: 5,4
|
# FILTER HSC-I
|
wcs; fk5
|
circle(320.735301,-0.407181,0.003015d) # ID: 2686366082164587136, mag: 16.787139
|
box(320.735301,-0.407181,0.000905d,0.009046d,0) # ID: 2686366082164587136, mag: 16.78713
|
and it prints this warning:
compareWarpAssembleCoadd WARN: Expected to see abstract_filter in metadata
|
compareWarpAssembleCoadd WARN: Expected to see skymap in metadata
|
compareWarpAssembleCoadd WARN: Expected to see patch == 5,4 in metadata, saw 69
|
We could either:
(a) adapt the lines that check it so that it sees this as match
(b) remove the lines that check it (use the second commit)
(c) just leave it printing the warnings
Changed my mind: I'm now leaning towards putting the SkyMap in the root repo, as that will let us inherit both in Gen3-only processing later instead of having to manually transfer them from the Gen2 output repo.