bilby.gw.conversion.generate_specific_parameters

bilby.gw.conversion.generate_specific_parameters(sample, parameters)[source]

Generate a specific subset of parameters that can be generated.

Parameters:
sample: dict

The input sample to be converted.

parameters: list

The list of parameters to return.

Returns:
output_sample: dict

The converted parameters

Notes

This is _not_ an optimized function. Under the hood, it generates all possible parameters and then downselects.

If the passed parameters do not include the input parameters, those will not be returned.