Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: meas_base
-
Labels:
-
Story Points:2
-
Epic Link:
-
Sprint:Measurement-S14-4
-
Team:Data Release Production
Description
Now that all tasks that use catalogs explicitly set the table version, it should be relatively straightforward to set the default version to 1 in afw. Code that cannot handle version > 0 tables should continue to explicitly set version=0.
Moved DEFAULT_VERSION to SchemaImpl, but kept a reference to in in Schema. This is because SchemaImpl is not visible from Python, and it seems like it would be ugly to make it so.
Only module really changed in AFW_DIR. Here are the changes:
emerald:/sandbox/lsstshared/pgee/mylsst7/Linux64/afw> git diff tickets/
, 1 deletion
DM-590--statinclude/lsst/afw/table/Schema.h | 4 +++-
include/lsst/afw/table/detail/SchemaImpl.h | 2 ++
tests/testFunctorKeys.py | 3 +++
tests/testSchema.py | 1 +
tests/testSimpleTable.py | 1 +
5 files changed, 10 insertions
-----------------------------------------------------------
Unit tests have been run in afw, meas_algorithms, meas_base, meas_astrom, meas_deblender, pipe_tasks. Changes to a few unit tests were required to call schema.setVersion(0)
No changes required to meas_base, ip_diffim
These are checked in to tickets/
DM-1070for those packages----------------------------------oops, just discovered a unit test failure in ap. Will fix it as soon as I get home.