Skip to content

API reference

Likelihoods

Bases: BaseLikelihood

Log-likelihoods for GW parameter estimation.

The waveform generation itself is still driven by the template object, which is typically CPU-side. When gpu=True HyperWave moves the array-heavy residual and likelihood algebra to CuPy while keeping a safe NumPy fallback.

__init__(data, f, ifos_list, noise, template, ddims=True, nsegs=4, gpu=False, infs=-1e+300, cpu_cores=32, calibration_bank=None, cal_chunk=64, cal_n_nodes=None, cal_minimum_frequency=None, cal_maximum_frequency=None, shape_per_detector=False)

Parameters:

Name Type Description Default
shape_per_detector bool

If True, the hyperbolic shape parameters α and δ (or α and the ratio δ/α) are sampled per detector rather than shared across the detector network. The combined-residual likelihood is replaced by a sum of single-detector MVH likelihoods, so each interferometer sees its own non-Gaussian noise scale. Requires ddims=True and is currently supported only on the non-calibration paths (hyperbolic and hyperbolic_classic); the *_calmarg and *_calsample variants raise NotImplementedError when this is set. The added parameter count is 2 * nsegs * n_ifo instead of 2 * nsegs.

False

inner_residual_batch(p)

Vectorised noise-weighted residual for a batch p of shape (N, wfdims).

Returns (N, n_freq) = 4 Re[df * sum_ifo conj(r) r / Sn] with one batched template call (no per-walker loop).

inner_residual_per_ifo(theta)

Single-walker noise-weighted residual, kept per-detector.

Same math as :meth:inner_residual but does NOT sum the ifo axis; returns shape (n_ifo, n_freq) = 4 Re[df * conj(r) r / Sn]. Used by :meth:hyperbolic / :meth:hyperbolic_classic when shape_per_detector=True.

inner_residual_batch_per_ifo(p)

Batched per-detector residual; returns shape (N, n_ifo, n_freq).

Same as :meth:inner_residual_batch but with the detector axis kept.

gaussian_calmarg(theta)

Gaussian log-likelihood marginalized over detector calibration.

Numerically marginalizes over the bank of precomputed calibration response curves supplied as calibration_bank at construction (shape (n_ifo, n_curves, n_freq), e.g. from :func:hyperwave.detectors.make_calibration_bank). This follows the LVK calibration-marginalization scheme (bilby's calibration_marginalization) and adds no sampled dimensions.

For curve C_k the Gaussian residual expands as

log L_k = -1/2 <d,d> + Re<d, C_k h> - 1/2 <C_k h, C_k h>,

evaluated for the whole walker batch in two einsums over the curve bank, then marginalized as logsumexp_k(log L_k) - log(n_curves). With a degenerate (zero-uncertainty) bank this reduces exactly to :meth:gaussian.

whittle_calmarg(theta)

Calibration-marginalized per-segment whittle log-likelihood.

Same parameter layout as :meth:whittle_level (calibration is marginalized, not sampled). With a degenerate bank reduces to it.

hyperbolic_calmarg(theta)

Calibration-marginalized hyperbolic log-likelihood (alpha/ratio form).

Same parameter layout as :meth:hyperbolic. With a degenerate bank reduces to it.

hyperbolic_classic_calmarg(theta)

Calibration-marginalized hyperbolic log-likelihood (alpha/delta form).

Same parameter layout as :meth:hyperbolic_classic. With a degenerate bank reduces to it.

calibration_ess(theta, kind='gaussian')

Effective sample size of the calibration marginalization at theta.

ESS = 1 / sum_k w_k^2 with w_k = softmax_k(logL_k) — how many of the n_curves bank curves effectively carry the marginalization weight. A small ESS (rule of thumb: below a few hundred) means the bank under-samples the calibration prior and the marginal likelihood is noisy / biased low, so n_curves should be raised. ESS equals n_curves for a degenerate (zero-uncertainty) bank.

kind selects the likelihood; for the non-Gaussian kinds theta must include the noise-shape parameters (same layout as the matching *_calmarg method). Returns ESS per walker if theta is batched.

calibration_worth_it(theta, params_of_interest=None, rel_step=1e-05, abs_step=1e-07, threshold=0.2)

Forecast whether calibration marginalization is worth it at theta.

Linear (Fisher / Cutler-Vallisneri) screen, no sampling. For each science parameter it compares the calibration-induced systematic spread to the statistical width::

Gamma_ij      = (d_i h | d_j h)                      # Fisher matrix
sigma_stat_i  = sqrt((Gamma^-1)_ii)                  # statistical width
dtheta_k      = Gamma^-1 (d h | (C_k - 1) h)         # bias from ignoring curve C_k
sigma_sys_i   = std_k(dtheta_k,i)                    # calibration systematic
R_i           = sigma_sys_i / sigma_stat_i

R >~ threshold (default 0.2) for any parameter of interest means the calibration error is a non-negligible fraction of the statistical error, so the (expensive) *_calmarg likelihood is worth running; R << 0.1 everywhere means it only widens posteriors imperceptibly and can be skipped. Waveform derivatives use central finite differences with step rel_step*|theta_i| + abs_step — evaluate at a representative best-fit point; parameters pinned at a boundary (e.g. cos_tilt = 1) give unreliable Fisher entries (regularized via pseudo-inverse).

Returns a dict with per-parameter R/sigma_stat/sigma_sys, the max_ratio over params_of_interest (default: all), and a worth_it boolean.

gaussian_calsample(theta)

Gaussian log-likelihood with sampled calibration nodes (Method A).

whittle_calsample(theta)

Per-segment whittle log-likelihood with sampled calibration nodes.

hyperbolic_calsample(theta)

Hyperbolic (alpha/ratio) log-likelihood with sampled calibration nodes.

hyperbolic_classic_calsample(theta)

Hyperbolic (alpha/delta) log-likelihood with sampled calibration nodes.

Bases: BaseLikelihood

Relative-binning Gaussian log-likelihood.

Parameters:

Name Type Description Default
data array(n_ifo, n_freq)

Frequency-domain data on the full grid.

required
f array(n_freq)

Full frequency grid (uniform spacing).

required
psd array(n_ifo, n_freq)

One-sided noise PSDs.

required
ifos_list sequence of str

Channel names (sets n_ifo).

required
h0 array(n_ifo, n_freq)

Reference waveform on the full grid (detector-projected), evaluated at theta_ref — ideally near the likelihood maximum (the injection or a search trigger point works).

required
waveform_edges callable

waveform_edges(thetas) -> (N, n_ifo, n_edges) giving the detector-projected waveform of a parameter batch at self.f_edges.

required
chi float

Bin-placement tuning (see :func:heterodyne_bin_edges).

1.0
eps float

Bin-placement tuning (see :func:heterodyne_bin_edges).

1.0
gpu bool

Run the per-call contraction on the GPU backend (CuPy) when available.

False
Notes

logl returns <d|h> - <h|h>/2 (the -<d|d>/2 constant is dropped; add self.dd_const if an absolute Gaussian logL is needed).

logl(theta)

Vectorised heterodyned logL for a batch theta of shape (N, ndim).

from_lvk_template(template, data, f, psd, ifos_list, theta_ref, chi=1.0, eps=0.5, gpu=False) classmethod

Build a heterodyne likelihood from an LVK template in one call.

template is a :class:hyperwave.detectors.lvk.GW (or its low-level Template) on the full masked grid f; theta_ref is the reference point (injection / trigger). Internally this evaluates h0 once on the full grid and constructs a second lal Template in sequence mode on the sparse bin-edge grid for the per-call batch evaluations.

Choose relative-binning bin-edge indices into the frequency grid f.

Edges are placed so the maximal differential phase a PN-like waveform can accumulate within one bin is <= eps radians (smaller eps = more bins = more accurate).

Returns an integer index array edges (monotone, first=0, last=len(f)-1); bin b spans f[edges[b]] .. f[edges[b+1]].

Coherent Gaussian log-likelihood for a wavelet signal model.

Parameters:

Name Type Description Default
data

Frequency-domain detector data (n_ifo, n_freq) on the analysis band.

required
psd

One-sided PSD (n_ifo, n_freq) on the same band.

required
template

A :class:~hyperwave.detectors.waveforms.wavelets.WaveletTemplate whose analysis band matches data/psd.

required

log_likelihood(wavelets, ra, dec, psi, ellipticity, inds=None)

Vectorised coherent Gaussian log-likelihood.

wavelets is (N, L, 5); ra/dec/psi/ellipticity are (N,); inds is the optional Eryn active-leaf mask (N, L). Returns (N,) (the constant noise normalisation is dropped; it cancels in RJMCMC).

single(wavelets, ra, dec, psi, ellipticity, inds=None)

Scalar log-likelihood for one sample's set of wavelets.

grouped_log_like(wavelets_flat, groups, ra, dec, psi, ellipticity, n_groups=None)

Eryn vectorize=True, provide_groups=True log-likelihood (fixed sky).

wavelets_flat is (M, 5) (all active leaves across walkers), groups is (M,) with contiguous values [0, G) (Eryn's group-map ordering). Returns a NumPy (G,) array of per-walker log-likelihoods. All wavelets are generated in one batch and the scatter-sum + inner product run on the template's device (GPU when gpu=True), making this the fast batched path.

grouped_log_like_sky(params, groups, n_groups=None)

Two-branch Eryn log-likelihood with a sampled sky.

params is [wavelets (Mw, 5), extrinsic (Me, 4)] and groups is [wgroups (Mw,), egroups (Me,)] as passed by Eryn for a signal + extrinsic branch run (vectorize=True, provide_groups=True). The extrinsic branch carries exactly one leaf per walker: (ra, dec, psi, ellipticity). Returns a NumPy (G,) array.

Inference

A unified inference runner supporting both Eryn and POCOMC samplers.

Attributes:

Name Type Description
loglikelihood Callable

Log-likelihood function.

sampler_name str

Name of the sampler to use ("eryn" or "pocomc").

priors dict

Dictionary of user-supplied priors.

noise_priors dict

Dictionary of priors for noise-related parameters.

common_params dict

Dictionary of parameters common to both samplers (e.g., cmin, cmax, TAG, etc.).

sampler_kwargs dict

Additional keyword arguments specific to the sampler.

run()

Dispatch the sampler execution based on the chosen method.

get_samples(thin=2)

Load the samples from the Eryn backend.

get_clean_chain(coords, ndim, temp=0)

A silly function to get the clean parameter chains out from Eryn. In the future it will not be needed.

get_result(injection=None, parameter_names=None, thin=2)

Return the posterior as a :class:hyperwave.Result.

parameter_names defaults to the prior order (science parameters followed by the noise-shape nuisance parameters). injection is an optional {name: truth} mapping used by the calibration/PP-tests.

Bases: _ErynDistribution

Joint 5-parameter birth proposal with data-fitted SNR and phase.

BayesWave's birth move owes its acceptance rate to fitting the linear wavelet parameters to the data at the proposed location. This proposal does the same exactly: (t0, f0) are drawn from the whitened-data time/frequency maps and Q from its prior range, then the matched-filter fit of the data against the unit wavelet at (t0, f0, Q),

.. math:: z_k = 4\,\Delta f \sum_f d_k(f)\,\bar w_0(f) / S_k(f),

gives the proposal centre: SNR ~ TruncNormal(rho_hat, sigma_snr) and phi0 ~ VonMises(arg z, kappa_phi), each mixed with the prior (weight mix) so deaths of odd wavelets keep a finite reverse density. Both rvs and logpdf evaluate the same deterministic fit, so the Hastings ratio in :class:eryn.moves.DistributionGenerateRJ stays exact.

Use as a joint entry in ProbDistContainer({(0,1,2,3,4): this}).

Matched-filter birth generate_dist (data-fitted SNR + phase).

Same placement maps as :func:build_guided_birth, but the linear wavelet parameters are proposed around the data's matched-filter fit at the proposed (t0, f0, Q) — the missing BayesWave ingredient that lifts birth acceptance from "lands on the signal" to "lands on the signal with the right amplitude and phase".

Build the generate_dist for a data-informed wavelet birth move.

Returns {branch_name: ProbDistContainer, "extrinsic": ProbDistContainer} suitable for :class:eryn.moves.DistributionGenerateRJ. t0 and f0 follow the whitened-data time/frequency power; Q, SNR and phi0 follow their priors (so only the placement is data-informed).

Results & validation

Posterior samples plus the metadata needed to interpret and persist them.

Parameters:

Name Type Description Default
samples ndarray

Posterior samples, shape (n_samples, n_dim).

required
parameter_names list[str]

Length n_dim list of column names, aligned with samples.

required
injection Optional[dict[str, float]]

Optional mapping {name: true_value} of injected parameters (for validation / PP-tests). May cover a subset of parameter_names.

None
log_evidence Optional[float]

Optional evidence estimate and its uncertainty (pocoMC provides these).

None
log_evidence_err Optional[float]

Optional evidence estimate and its uncertainty (pocoMC provides these).

None
sampler Optional[str]

Name of the sampler that produced the samples ("eryn"/"pocomc").

None
priors Optional[dict[str, tuple[float, float]]]

Optional mapping {name: (minimum, maximum)} describing the prior support (used for plotting ranges and provenance).

None
metadata dict[str, Any]

Free-form provenance (seed, wall-clock, package version, command, ...).

dict()

__getitem__(name)

1-D marginal samples for a parameter by name.

percentile(q)

Per-parameter percentile(s) q in [0, 100].

credible_interval(level=0.9)

Symmetric level credible interval per parameter.

credible_level(truth=None)

Quantile of the injected value in each 1-D marginal posterior.

For parameter θ this is mean(samples_θ < θ_true) -- the credible level at which the truth sits. For a correctly calibrated posterior these values are Uniform(0, 1) across many injections, which is what the PP-test checks (:mod:hyperwave.validation).

to_pandas()

Return the posterior as a pandas.DataFrame (requires pandas).

corner(truths=True, **kwargs)

Corner plot of the posterior (requires corner).

truths=True overlays the stored injection; pass a mapping to override, or False for none.

skymap(lon='lam', sinlat='sin_beta', lat=None, **kwargs)

Sky posterior (:class:hyperwave.plots.SkyPosterior) from two columns.

Defaults to the LISA sampling names lam/sin_beta; pass lat= instead of sinlat= for a latitude column (e.g. dec). Extra keyword arguments go to :class:SkyPosterior (nbins, smooth).

save(path)

Persist to path. .h5/.hdf5 use h5py; otherwise .npz.

Probability-probability (PP) testing for posterior calibration.

A pipeline that produces credible intervals is only trustworthy if those intervals have the coverage they claim: the X% credible interval should contain the truth X% of the time. The PP-test verifies this by injecting many signals drawn from the prior, recovering each, and checking that the credible level of the injected value (see :meth:hyperwave.Result.credible_level) is Uniform(0, 1) across injections.

This module is the pure statistical core -- it operates on a list of :class:hyperwave.Result objects (each carrying its injection) and is fully testable without running any inference. :mod:hyperwave.validation.campaign drives the (expensive) injection + recovery loop that produces those results.

credible_levels(results, parameters=None)

Stack per-injection credible levels into an (n_injections, n_param) array.

Parameters:

Name Type Description Default
results Sequence

Sequence of :class:hyperwave.Result, each with an injection set.

required
parameters Optional[Sequence[str]]

Parameters to include; defaults to those present in every injection.

None

Returns:

Type Description
levels, names:

levels[i, j] is the credible level of the injected value of parameter names[j] in result i.

pp_pvalues(levels, names)

Per-parameter and combined p-values that the credible levels are uniform.

Each parameter gets a one-sample Kolmogorov-Smirnov p-value against Uniform(0, 1); the combined p-value pools them via Fisher's method. A small combined p-value is evidence of miscalibration (biased or over/under-confident posteriors).

make_pp_plot(results, parameters=None, *, confidence_bands=(0.68, 0.95, 0.997), title=None, ax=None)

Draw a PP-plot and return (fig, pvalues).

For each parameter the empirical CDF of the credible levels is plotted against the diagonal; a calibrated pipeline tracks the diagonal within the grey binomial confidence bands. The legend reports each parameter's KS p-value and the combined p-value.

Sky maps

Gridded sky posterior on an equal-area (lon, sin lat) grid.

Build it with :meth:from_samples or :meth:from_result. prob holds the probability per cell (sums to one), shape (n_lon, n_sinlat); longitude runs [0, 2 pi) along axis 0 and sin(lat) runs [-1, 1] along axis 1.

Parameters:

Name Type Description Default
lon ndarray

Posterior samples (radians / dimensionless).

required
sinlat ndarray

Posterior samples (radians / dimensionless).

required
weights Optional[ndarray]

Optional importance weights.

None
nbins tuple[int, int]

(n_lon, n_sinlat); the default is the canonical 0.5 degree grid.

(720, 360)
smooth float

Gaussian smoothing in cells (the canonical value is 1.0).

1.0
periodic bool

Smooth across the longitude seam (recommended; the canonical scalar estimator does not, which differs only when mass sits at lon = 0).

True

cell_area_deg2 property

Area of one grid cell in deg^2 (all cells are equal-area).

lat_centers property

Latitude (radians) of the cell centres along axis 1.

density(smooth=None)

Probability per cell with smooth cells of Gaussian smoothing.

None returns the canonical map prob. A larger value gives the smoother map used for drawing (it is never used for areas).

from_samples(lon, lat=None, *, sinlat=None, weights=None, degrees=False, **kwargs) classmethod

From longitude and either lat or sinlat samples.

degrees=True converts lon/lat from degrees.

from_result(result, lon='lam', sinlat='sin_beta', lat=None, weights=None, **kwargs) classmethod

From a :class:hyperwave.Result (default LISA names lam/sin_beta).

level(p)

Probability-per-cell threshold enclosing credible mass p (greedy HPD).

credible_area(p=0.9)

HPD credible area [deg^2] at level p (canonical estimator).

truth_credible_level(lon, lat)

Smallest HPD credible level that contains the point (lon, lat) [rad].

This is the searched probability; for a calibrated posterior it is uniform over repeated injections.

searched_area(lon, lat)

Area [deg^2] a greedy search covers before reaching (lon, lat).

modes(p=0.9, min_mass=0.005, merge_deg=45.0)

Sky modes inside the p credible region, by decreasing mass.

Islands of the credible region that lie within merge_deg degrees of each other (or touch across the longitude seam) form one mode, so a fragmented island is not counted several times; merge_deg=0 keeps every connected island separate.

Each entry has mass (posterior probability inside the mode's HPD cells, summing over modes to about p), mass_total (probability of the whole sky attributed to this mode by nearest-mode partition, summing to one -- the quantity to quote as a mode probability), area [deg^2], lon/lat (probability-weighted centre, radians), lon_deg/lat_deg, lon_peak/lat_peak (densest cell, radians) and antipode_of -- the index of the mode whose antipodal point (lon + pi, -lat) falls on this one, or None.

mode_partition(p=0.9, min_mass=0.005, merge_deg=45.0)

Index of the nearest mode of :meth:modes for every grid cell.

dominant_mode_fraction(p=0.9)

Posterior probability attributed to the strongest mode (mass_total).

summary(levels=(0.5, 0.9), truth=None)

Dictionary of the numbers a paper or alert would quote.

to_healpix(nside=64, nest=False)

Probability per HEALPix pixel (sums to one). Requires healpy.

The samples are binned directly with ang2pix (no smoothing); use a coarser nside for small sample sets. Coordinates are the input frame (ecliptic for LISA); longitude is phi and colatitude pi/2 - lat.

write_fits(path, nside=64, nest=False, coord='E', extra_header=None)

Write a HEALPix PROB map in FITS (LIGO/Virgo-style). Requires healpy.

plot(ax=None, *, projection='mollweide', levels=(0.5, 0.9), truth=None, dark=False, center_lon=0.0, astro=False, cmap=None, contours=True, label_modes=True, modes_p=0.9, title=None, grid=True, smooth=DISPLAY_SMOOTH, lon_labels=False, vmax_quantile=1.0, usetex=False)

All-sky map: posterior density on a dark sky, HPD contours, labelled modes.

projection is any matplotlib geographic projection ('mollweide', 'hammer', 'aitoff'). Longitude increases to the right and the map is centred on center_lon; astro=True puts east on the left. truth=(lon, lat) in radians marks the injected position. The density and the thin levels contours are drawn with smooth cells of smoothing. The strongest mode is labelled "dominant", its antipodal image "antipodal". dark switches to a dark page. Returns the axes.

plot_zoom(ax=None, *, levels=(0.5, 0.9), truth=None, dark=False, pad=1.5, mode_index=0, fov=None, filled=True, color=None, linestyle='solid', label=None, title=None, window=None, smooth=DISPLAY_SMOOTH, legend=True, legend_title=None, usetex=False)

Zoom (degrees) on one mode: filled HPD regions, injection, fields of view.

The levels regions are drawn with smooth cells of smoothing (areas are not affected). fov maps instrument name to field-of-view area in deg^2 (e.g. {"Rubin": 9.6, "Athena": 0.4}); each is drawn as a circle of equal area centred on the mode. pad scales the window around the mode's extent; window=(lon_min, lon_max, lat_min, lat_max) in degrees sets it explicitly. Returns the axes.

One-call figure: Mollweide all-sky map plus a zoom on the dominant mode.

obj is a :class:SkyPosterior, a :class:hyperwave.Result (uses the lam/sin_beta columns) or an (N, 2) array of (lon, sinlat). The quoted areas are the canonical ones; the drawn regions are smoothed for display. Returns (fig, axes).

Overlay the HPD regions of several runs (e.g. subtracted / foreground / clean).

The first run is the reference posterior: it is drawn filled, the zoom is centred on its dominant mode and the all-sky panel shows its density. The other runs are drawn as contour lines. The legend quotes the canonical areas of every run and f_dom, the probability each run assigns to the part of the sky that belongs to that dominant mode. reference is an optional extra posterior (e.g. an unseeded run) drawn as a dotted outer contour. allsky=False gives the zoom panel alone; level=0.9 is a shortcut for levels=(0.9,). Returns (fig, axes).

Matplotlib style of the sky-map figures (serif, inward ticks on all sides).

The plotting functions of this module apply it themselves (on top of matplotlib's defaults), so the figures do not depend on the global rcParams and leave them unchanged. Use it for your own additions to a figure, so that they share its fonts and ticks::

fig, axes = plot_skymap(sky)
with sky_style():
    axes[1].set_title("alert at merger minus 30 days")
    fig.savefig("sky.pdf", bbox_inches="tight")

usetex=True renders the text with LaTeX (needs a LaTeX installation).

Detectors & templates

make_injections_to_ifo_batch(thetas)

Batched, pure generation for the likelihood: (N, n_ifo, n_freq_masked).

make_injections_to_ifo(gw_params, raise_error=False)

Inject the signal into the stored data and return the masked response dict.

Mirrors the original behaviour: an injection mutates the detector data (without accumulating across calls) and returns {ifo_name: masked}.

LISA A/E/T integration helpers built around lisatools.

LISAAETTemplate dataclass

Adapter that makes a lisatools-style signal model usable by HyperWave.

The wrapped signal_model (single source) can return either:

  • a DataResidualArray
  • a dictionary keyed by channel name
  • a raw array with shape (nchannels, nfreq)

Pass batch_signal_model to enable the vectorised path: HyperWave's GWLikelihoods probes for make_injections_to_ifo_batch and, when present, generates the whole walker population in a single generator call (one bbhx/gbgpu call for all walkers) instead of looping per walker — the fast path for both Eryn and pocoMC, which evaluate the likelihood vectorised. The batch model receives one array per parameter (length N) and must return (N, nchannels, nfreq) (or a channel-keyed dict of (N, nfreq)). When no batch model is given the batched entry point is hidden so the likelihood falls back to the per-walker path.

make_injections_to_ifo_batch(thetas)

Vectorised signal for a batch of walkers -> (N, nchannels, nfreq).

lisatools_available()

Return True when lisatools's A/E/T containers import cleanly.

The import is done lazily (not at module load) on purpose: importing lisatools.analysiscontainer pulls in compiled kernels that SIGILL on CPUs without the instruction set the wheel was built for (e.g. AVX-512 on a Zen3 node). HyperWave's A/E/T adapter only needs those classes when a user passes a real AnalysisContainer/DataResidualArray — the raw-array and bbhx/gbgpu paths duck-type instead — so the bridge must stay importable without them. BaseException is caught because a SIGILL surfaces here as a fatal signal, not an ImportError.

prepare_lisa_aet_inputs(data, sensitivity=None, freqs=None, channels=AET_CHANNELS)

Convert lisatools containers into the arrays expected by HyperWave.

Parameters:

Name Type Description Default
data Any

A lisatools.analysiscontainer.AnalysisContainer, lisatools.datacontainer.DataResidualArray, or a raw array-like object.

required
sensitivity Any | None

A lisatools sensitivity matrix or raw PSD array. If data is an AnalysisContainer and sensitivity is omitted, the container's sensitivity matrix is used automatically.

None
freqs Sequence[float] | None

Frequency array. If omitted, HyperWave tries to read f_arr or frequency_arr from the input objects.

None
channels Sequence[str]

Channel names, typically ("A", "E", "T").

AET_CHANNELS

build_lisa_aet_likelihood(data, template, sensitivity=None, freqs=None, channels=AET_CHANNELS, **kwargs)

Build a HyperWave likelihood directly from lisatools A/E/T objects.