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-20695: Convert SelectImageTasks to Gen3 #473

Merged
merged 1 commit into from Mar 2, 2021
Merged

Conversation

yalsayyad
Copy link
Contributor

  • Refactor SelectImageTasks, adding a run method that takes lists
    of calexp properties. runDataRef remains the Gen2 entry point
    which still takes dataRefs.
  • MakeWarp now calls the configured selectImages subtask in
    runQuantum. The calexp list was changed to deferLoad, because the padding
    needed in the gen3 skymap is providing many more calexps than actually
    overlap the patch. Loading is performed after image selection is run,
    so that only the calexps that will be used are loaded into memory.

skyInfo=skyInfo)
if self.config.makeDirect:
butlerQC.put(results.exposures["direct"], outputRefs.direct)
if self.config.makePsfMatched:
butlerQC.put(results.exposures["psfMatched"], outputRefs.psfMatched)

def prepareCalibratedExposures(self, calExpList, backgroundList=None, skyCorrList=None):
def filterInputs(self, indices, inputs):
"""Return task inputs with their lifsts filtered by indices
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"""Return task inputs with their lifsts filtered by indices
"""Return task inputs with their lists filtered by indices

* Refactor SelectImageTasks, adding a run method that takes lists
  of calexp properties. runDataRef remains the Gen2 entry point
  which still takes dataRefs.
* MakeWarp now calls the configured selectImages subtask in
  runQuantum. The calexp list was changed to deferLoad, because the padding
  needed in the gen3 skymap is providing many more calexps than actually
  overlap the patch. Loading is performed after image selection is run,
  so that only the calexps that will be used are loaded into memory.
@yalsayyad yalsayyad merged commit 0dcdce5 into master Mar 2, 2021
@yalsayyad yalsayyad deleted the tickets/DM-20695 branch March 2, 2021 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants