Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-27869: Create jointcal pipetask #171

Merged
merged 9 commits into from Mar 3, 2021
Merged

DM-27869: Create jointcal pipetask #171

merged 9 commits into from Mar 3, 2021

Conversation

parejkoj
Copy link
Collaborator

@parejkoj parejkoj commented Feb 17, 2021

As implemented here, the single gen3 test doesn't test anything other than that the gen3 jointcal codepath runs without raising. I need to implement the new system of outputting measurements of Metrics, and figure out how to rework the existing code to work with a gen3 repo, since we cannot currently call pipetasks via an API, so I cannot get returned values from JointcalTask.run()

Copy link

@isullivan isullivan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. My comments are mostly about documentation, though there is one place you should add a check for a value of None.

python/lsst/jointcal/jointcal.py Outdated Show resolved Hide resolved
python/lsst/jointcal/jointcal.py Outdated Show resolved Hide resolved
python/lsst/jointcal/jointcal.py Outdated Show resolved Hide resolved
python/lsst/jointcal/jointcal.py Outdated Show resolved Hide resolved
python/lsst/jointcal/jointcal.py Outdated Show resolved Hide resolved
python/lsst/jointcal/jointcal.py Outdated Show resolved Hide resolved
python/lsst/jointcal/jointcal.py Outdated Show resolved Hide resolved
python/lsst/jointcal/jointcal.py Outdated Show resolved Hide resolved
python/lsst/jointcal/jointcal.py Show resolved Hide resolved
tests/jointcalTestBase.py Show resolved Hide resolved
python/lsst/jointcal/jointcal.py Show resolved Hide resolved
python/lsst/jointcal/jointcal.py Outdated Show resolved Hide resolved
tests/test_jointcal_hsc.py Outdated Show resolved Hide resolved
tests/test_jointcal_hsc.py Outdated Show resolved Hide resolved
Add sample parquet visit-level file to test against, and tests of
DataFrame->afw.SourceCatalog conversion using it.

Rework gen2 loading to move source selection out of _build_ccdImage,
because gen3 source selection happens on the visit-level DataFrame.
* Use visit-level catalog and exposure summary for gen3 input
* Refactor gen2 write methods to share a single method we can use for gen3.
We can't use cmdline args like this in gen3, so if we want to keep it,
it needs to be a config option.
There are plans to allow a config to be split into sections by usage;
I've left a comment to that effect for one block.
* Use pipeline definition file in jointcal tests.
* Add pipeline definition file for HSC test.
* Add gen3 test config.
* Cleanup gen3 test config handling.
The cfht_minimal test was failing after the gen3 refactor because we
previously created empty ccdImages, whereas now we just skip them if
no sources were selected, resulting in a different, less obvious
exception.
@parejkoj parejkoj merged commit 2abd0ea into master Mar 3, 2021
@parejkoj parejkoj deleted the tickets/DM-27869 branch March 3, 2021 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants