Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: afw
-
Labels:
-
Story Points:2
-
Epic Link:
-
Sprint:Science Pipelines DM-W15-1
-
Team:Data Release Production
Description
Schema aliases should support more than one level (i.e. an alias may resolve to another alias).
Attachments
Issue Links
- blocks
-
DM-1332 address no-shape warnings in GaussianFlux
- Done
Daniel, up for a small review in afw?
This adds recursive behavior to the afw::table alias system: instead of just replacing name lookups that begin with registered aliases with the alias target once, we do it repeatedly until we don't find another match. Should be straightforward and well-localized, so I don't think it should be a problem that there's a lot of unfamiliar code nearby.
All changes are on afw branch u/jbosch/
DM-1282:afw:u/jbosch/DM-1282 % git diff --stat master...u/jbosch/DM-1282
python/lsst/afw/table/Base.i | 8 ++++----
src/table/AliasMap.cc | 37 +++++++++++++++++++++++++------------
src/table/Schema.cc | 10 +++++-----
tests/testTableAliases.py | 17 +++++++++++++++++
4 files changed, 51 insertions(+), 21 deletions(-)