firecrown.data_functions.maybe_enforce_window

firecrown.data_functions.maybe_enforce_window#

firecrown.data_functions.maybe_enforce_window(ells, indices, sacc_data)[source]#

Possibly enforce a window function on the given ells.

Parameters:
  • ells (ndarray[tuple[int, ...], dtype[int64]]) – The original ell values.

  • indices (ndarray[tuple[int, ...], dtype[int64]]) – The indices of the data points in the SACC object.

  • sacc_data (Sacc) – The SACC object containing the data.

Return type:

tuple[ndarray[tuple[int, ...], dtype[int64]], None | ndarray[tuple[int, ...], dtype[float64]]]

Returns:

A tuple containing the possibly replaced ells and the window weights.