Corrected exclusion mask notebook
"mask_map_significance = result[\"sqrt_ts\"] < 5.0"
]
},
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Because the `ExcessMapEstimator` returns NaN for masked pixels, we need to put the NaN values to `True` to avoid incorrectly excluding them. "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "invalid_pixels = np.isnan(result[\"sqrt_ts\"].data)\n",
+ "mask_map_significance.data[invalid_pixels]=True"
+ ]
+ },
{
"cell_type": "code",
"execution_count": null,
