Details
-
Type:
Improvement
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: ap_verify
-
Labels:None
-
Story Points:7
-
Epic Link:
-
Sprint:AP S23-1 (December)
-
Team:Alert Production
Description
Currently, there are two approaches to handling tools for dataset management:
- The script for syncing a dataset's Gen 2 and Gen 3 content is (used to be?) located at https://github.com/lsst-dm/ap_verify_dataset_template/blob/main/scripts/add_gen3_repo.py, where it could theoretically be included in new datasets. This location is centralized, making it easier to update and improve on the script. However, it has proven an accessibility challenge for users who don't keep a copy of ap_verify_dataset_template handy (particularly Middleware, when the Gen 3 repository format was frequently changing).
- The scripts for generating a dataset's contents from scratch, in either Gen 2 or Gen 3, are located in their individual scripts directories. This approach is easily accessible, but involves a large amount of code duplication that requires duplicate maintenance (for example, to deal with bit rot).
In addition, John Parejko proposed a third option, which is to maintain these scripts as part of ap_verify proper. This would combine the benefits of the above two approaches, but at the cost of flexibility – ap_verify should be agnostic to where datasets come from or how they are managed, and different datasets do sometimes require different processing (source selection criteria, quirks of particular observatories, etc.).
Once the pressure of Gen 2 removal is behind us, revisit this issue to try to find the best solution for a pure Gen 3 world.
Attachments
Issue Links
- is blocked by
-
DM-33150 Remove Gen 2 support from ap_verify
- Done
- relates to
-
DM-32261 Add SSO data to CI dataset
- Done
-
DM-34845 Create ap_verify dataset for DC2
- Done
-
DM-32975 Investigate omitting curated calibs from ap_verify dataset
- Done
-
DM-35054 Assist with creating DC2 CI dataset
- Done
- mentioned in
-
Page Loading...
While ap_verify_ci_hits2015 creates its own calibs using cp_pipe, it is likely that ap_verify_ci_cosmos_pdr2 will use the standard ones from /repo/main instead. While this doesn't exclude us from sharing some code (options 1 and 3 above), it would require that at least generate_all_gen3.sh be repository-specific.