diff --git a/python/lsst/source/injection/utils/_consolidate_injected_deepCoadd_catalogs.py b/python/lsst/source/injection/utils/_consolidate_injected_deepCoadd_catalogs.py index 2361c23..79656cf 100644 --- a/python/lsst/source/injection/utils/_consolidate_injected_deepCoadd_catalogs.py +++ b/python/lsst/source/injection/utils/_consolidate_injected_deepCoadd_catalogs.py @@ -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