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-31825: Add columnar access to source tables and support new table column names #193

Merged
merged 2 commits into from Sep 30, 2021

Conversation

erykoff
Copy link
Contributor

@erykoff erykoff commented Sep 28, 2021

No description provided.

visitCatalog = inputSourceTableVisit[catalogMap[visitSummaryRef.dataId['visit']]].get()

dataRef = inputSourceTableVisit[catalogMap[visitSummaryRef.dataId['visit']]]
if isinstance(dataRef, dafPersist.ButlerDataRef):
Copy link
Collaborator

Choose a reason for hiding this comment

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

This shouldn't be necessary here at all: this method is only called when running in gen3.

@@ -885,15 +884,24 @@ def _load_data(self, inputSourceTableVisit, inputVisitSummary, associations,
catalogMap = {ref.dataId['visit']: i for i, ref in enumerate(inputSourceTableVisit)}
detectorDict = {detector.getId(): detector for detector in camera}

columns = None
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add a note here about how this is filled out with the columns to be load from the sourceTable during the first loop iteration.

@@ -920,6 +928,53 @@ def _make_one_input_data(self, visitRecord, catalog, detectorDict):
filter=lsst.afw.image.FilterLabel(band=visitRecord['band'],
physical=visitRecord['physical_filter']))

def _get_sourceTable_visit_columns(self, inColumns):
"""
Get the sourceTable_visit columns from the config.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if this is something we can put somewhere more general? I don't know if a tweak of this is generally applicable for code that reads the visit-level tables?

@yalsayyad yalsayyad merged commit 314fa6d into master Sep 30, 2021
@yalsayyad yalsayyad deleted the tickets/DM-31825 branch September 30, 2021 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants