Create tool to ensure all events with reweighted posterior samples have the same source parameters
Need a tool to combine reweighted posterior samples from all events into one ND array. This requires padding some columns where a parameter may not be relevant to an event, e.g. tidal parameters for BBHs. Here's a sketch of the functionality:
- Inputs:
- a list called
event_parameters
that specifies which parameters will be present for every event in the final popsummary file - N arrays with shape
(NumberOfDraws, NumberOfHyperSamples, NumberOfEventDimensions_i)
where i = 1...N corresponding to each event.
- Outputs:
- an array of shape
(NumberOfEvents, NumberOfDraws, NumberOfHyperSamples, NumberOfEventDimensions)
whereNumberOfEventDimensions
corresponds to the the size ofevent_parameters