Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fred3m committed Jul 2, 2024
1 parent 3ada940 commit 44cb862
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 0 additions & 8 deletions python/lsst/rubintv/analysis/service/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,14 +287,6 @@ def get_join(self, table1: str, table2: str) -> sqlalchemy.ColumnElement:

raise ValueError(f"Could not find a join between {table1} and {table2}")

def get_primary_match_id(self, column_name: str) -> str:
"""Return the column used to match a table with data IDs in the table
"""
table_name, _ = column_name.split(".")
if table_name.startswith("exposure"):
return f"{table_name}.exposure_id"
return f"{table_name}.visit_id"

def build_join(self, table_names: set[str]) -> sqlalchemy.Table | sqlalchemy.Join:
tables = list(table_names)
last_table = tables[0]
Expand Down
1 change: 1 addition & 0 deletions ups/rubintv_analysis_service.table
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# the "base" package.
setupRequired(lsst_distrib)
setupRequired(obs_lsst)
setupRequired(afw)

# The following is boilerplate for all packages.
# See https://dmtn-001.lsst.io for details on LSST_LIBRARY_PATH.
Expand Down

0 comments on commit 44cb862

Please sign in to comment.