def METHOD_NAME(self, coord):
    """Flag coord over the mask as NaN"""
    for dx, dy in self._deltas:
        if self._mask[int(coord[0] + dx), int(coord[1] + dy)] != 0:
            return float("nan"), float("nan")
    return coord