Skip to content

API for the glworia.amp.load_interp module

F_interp(w_interp, y_interp, lp_interp, interpolators, settings, return_geom=False, strong_lens_cond_override=strong_lens_cond_override_default)

Interpolate the frequency domain amplification factor for a given frequency array, given interpolation tables.

Parameters:

Name Type Description Default
w_interp ndarray

The output frequency array that the interpolated amplitude will be evaluated at.

required
y_interp float

The impact parameter

required
lp_interp float

The value of the lens parameter.

required
interpolators Dict[str, Any]

A dictionary of interpolation tables.

required
settings Dict[str, Union[str, float, int]]

A dictionary of settings including N and T0_max.

required
return_geom bool

Whether to return the geometrical optics approximated amplification and other quantities for debugging.

False
strong_lens_cond_override Callable

A function that overrides the condition for strong lensing.

strong_lens_cond_override_default

Returns:

Name Type Description
F_interp Union[ndarray, Tuple]

The interpolated amplitude.

load_interpolators(interpolation_root_dir, **kwargs)

Load the interpolation tables for the amplitude calculation.