Skip to content

Commit

Permalink
Rename point_truth
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-mazzone committed Dec 12, 2024
1 parent 0317495 commit 6ae8c19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/matchbox/server/postgresql/utils/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,14 @@ def query(

with Session(engine) as session:
# If a resolution was specified, validate and retrieve it
point_truth = None
point_of_truth = None
if resolution is not None:
point_truth = (
point_of_truth = (
session.query(Resolutions)
.filter(Resolutions.name == resolution)
.first()
)
if point_truth is None:
if point_of_truth is None:
raise MatchboxResolutionError(resolution_name=resolution)

# Process each source dataset
Expand All @@ -304,7 +304,7 @@ def query(

hash_query = _resolve_cluster_hierarchy(
dataset_hash=dataset.hash,
resolution=point_truth if point_truth else dataset,
resolution=point_of_truth if point_of_truth else dataset,
threshold=threshold,
engine=engine,
)
Expand Down

0 comments on commit 6ae8c19

Please sign in to comment.