Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: afw
-
Labels:
-
Story Points:1
-
Epic Link:
-
Team:Data Release Production
Description
Delimiters in Schema field names are version-dependent. One can currently use schema["a"]["b"].getPrefix() to join fields using the appropriate delimiter, but this is confusing to read.
Andy, up for a tiny review? This adds a convenience method to afw::table::Schema to join field name components using the appropriate delimiter (version 0 tables use '.', version > 0 tables use '_'). I was finding it annoying to write version-independent code without something like this.
All changes are on a single commit on branch u/jbosch/
DM-1281of afw:afw:u/jbosch/DM-1281 % git diff master...u/jbosch/DM-1281 --stat
include/lsst/afw/table/Schema.h | 13 +++++++++++++
src/table/Schema.cc | 5 +++++
tests/testSchema.py | 9 +++++++++
3 files changed, 27 insertions(+)