Skip to content

Added event params metadata and updated/fixed masking

Christian Adamcewicz requested to merge 8-put-in-event-dimension-labels into main

Closes #8 (closed)

A list of event parameter names can now be added to the metadata under event_parameters.

I've also added the ability to mask by parameter name when retrieving data (e.g. can retrieve only reweighted m1 samples instead of needing to retrieve reweighted m1, m2, a_1, ..., samples simultaneously). I've also added the ability to mask hypersamples when retrieving them (e.g. only retrieve certain number of draws or only retrieve samples for certain hyperparameters).

I've also fixed a bug in the event masking function. Previously, if you wanted to mask by several events (e.g. retrieve reweighted samples for GW170809 and GW170814), the function would only return data for the first of the listed events. This has been corrected.

Merge request reports