Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Labels:
-
Story Points:4
-
Epic Link:
-
Sprint:Measurement Sprint 1
-
Team:Data Release Production
Description
The slot mechanism in afwTable currently uses compound fields to save the 3 slot types: flux, centroid, and shape. Since the new measurement framework uses a flattened representation in the SourceTable where these types are saved as multiple scalar fields, the slot mechanism need to be altered to handle this new table type.
1. An alternative to KeyTuple for storing the keys required by the slot
2. Fixup get(Centroid, Flux, Shape) in SourceRecord to use correct keys.
3. Fixup the single value getters (getX, getY, etc) to use the correct keys.
4. Persist slot info to fits correctly, based on table version.
Attachments
Issue Links
- is blocked by
-
DM-384 Add Versioning to SourceTable in lsst::afw::table
- Done
Oops, I actually meant the one that takes a SubSchema (which is just a combination of a Schema and string: it's what you get when you say schema[string]).
I didn't realize there was a branch for meas_base (this is one reason we typically paste the output of "git diff --stat" when requesting a review). Now that I'm trying that, I'm seeing all the tests fail. Are there any other branches I need to set up? In the meantime, I'll rebuild everything against the latest afw; maybe that's the problem.
Ah, ok. So it's not a problem right now, but it will be again in the future when we change the default version.
As I said, I don't think we need to fix it. I'd prefer to just remove those methods, and just leave the ones that take strings. Do you need them for anything?