Skip to content

Commit

Permalink
Fix filling of masked values in consolidated catalogs
Browse files Browse the repository at this point in the history
  • Loading branch information
taranu committed Sep 11, 2024
1 parent 8d76a8a commit 840bce2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,9 @@ def _make_multiband_catalog(
for colname in multiband_catalog.columns:
column = multiband_catalog[colname]
if isinstance(column, MaskedColumn):
dtype = column.dtype
# Fill with nan if possible, otherwise the dtype's minimum
column.fill(np.nan if np.issubdtype(dtype, float) else np.ma.maximum_fill_value(column))
column._data[column.mask] = (
np.nan if np.issubdtype(column.dtype, float) else np.ma.maximum_fill_value(column)
)
return multiband_catalog


Expand Down

0 comments on commit 840bce2

Please sign in to comment.