Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: afw
-
Labels:None
-
Story Points:1
-
Epic Link:
-
Sprint:Science Pipelines DM-S15-5
-
Team:Alert Production
Description
ChebyshevBoundedField uses "." instead of "_" as field separators in its afw table persistence. This is the old way of doing things, and unfortunately causes errors when reading in older versions of tables, becaus afw converts "." to "_" in that situation.
This shows up as a unit test failure in DM-2981 (brought over from HSC) when an older version table is read in.
It is an open question whether to fix this as part of DM-2981 (which conveniently has a test that shows the problem, though not intentionally so) or separately, in which case a new test is wanted. In the former case I'm happy to do the work so I can finish DM-2981.
Many thanks to Jim Bosch for diagnosing the problem.
Forgive my naivety, but on first reading I'm not sure that I follow.
You mention that "older version table is read in". Do you mean that this test relies on some old table that has been saved in afwdata or equivalent, and that breaks? Or do you just mean that when you persist a new ChebyshevBoundedField it makes an old-style table that you can't then successfully read back?
In the latter case, I guess this is pretty straightforward fix (I guess it just needs a few . s to be replaced by _ s in ChebyshevBoundedField.cc). I'd suggest filing a new ticket for it, but would imagine it could be turned around quickly.
If there's some deeper backwards compatibility issue here, that might be a different matter.