Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: pipe_base
-
Labels:
-
Story Points:2
-
Epic Link:
-
Team:Data Release Production
Description
Write minimal shims that implement some Gen2 APIs using Gen3 implementations. That will start with just get and put on DataRef and Butler, for Tasks that (at most) just pass Data IDs around without looking at what's in them.
Future ticket could add some data ID translation, if we decide that's better than putting conditional logic in the Tasks themselves.
Also add a "gen" attribute to both Butler classes, so conditional code can actually be written.
Attachments
Issue Links
- relates to
-
DM-16876 Revisit Butler ctor keyword argument names
- Won't Fix
This is just about ready for review. I'm still working on the tests in ci_hsc - the test script passes when run manually, but it turns out the weird SConstruct doesn't even run the previous test script there. Anyhow, changes are in:
New functionality includes the shim classes themselves (in pipe_base), some class attributes for generation-specific logic in Tasks in daf_butler and daf_persistence, and some otherwise-unrelated fixes to raw data reading that I discovered while working on the tests.
While I've asked Nate Lust to review, Yusra AlSayyad and Christopher Waters might want to have a look at the pipe_base changes as well.