Skip to content

Commit

Permalink
a tad more precise
Browse files Browse the repository at this point in the history
  • Loading branch information
ismael-mendoza committed Apr 2, 2024
1 parent ba99664 commit 21dca37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions btk/blend_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,12 @@ def __post_init__(self) -> None:
def _validate_catalog(self, catalog: Table):
if not ("ra" in catalog.colnames and "dec" in catalog.colnames):
raise ValueError(
"The output catalog of at least one of your measurement functions does"
"The output catalog of at least one of your deblenders does"
"not contain the mandatory 'ra' and 'dec' columns"
)
if not len(catalog) <= self.max_n_sources:
raise ValueError(
"The predicted catalog of at least one of your deblended images "
"The detection catalog of at least one of your deblended images "
"contains more sources than the maximum number of sources specified."
)
return catalog
Expand Down Expand Up @@ -320,7 +320,7 @@ def _validate_catalog(self, catalog_list: List[Table]):
)
if not len(catalog) <= self.max_n_sources:
raise ValueError(
"The predicted catalog of at least one of your deblended images "
"The detections catalog of at least one of your deblended images "
"contains more sources than the maximum number of sources specified."
)
return catalog_list
Expand Down

0 comments on commit 21dca37

Please sign in to comment.