Skip to content

Commit

Permalink
Merge pull request #88 from LSSTDESC/_compress_via_mask_bug_fix
Browse files Browse the repository at this point in the history
add 'and no_mjd_return' condition for sso's
  • Loading branch information
jchiang87 authored Mar 7, 2024
2 parents 4be8699 + 5f7528a commit d1a98e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skycatalogs/skyCatalogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _compress_via_mask(tbl, id_column, region, source_type='galaxy',

mask = _compute_region_mask(disk_region, tbl['ra'], tbl['dec'])
if all(mask):
if no_obj_type_return:
if no_obj_type_return and no_mjd_return:
return None, None, None, None
else: # currently if object type is returned, mjd is not
return None, None, None, None, None
Expand Down

0 comments on commit d1a98e5

Please sign in to comment.