Skip to content

split 'ligo.em_bright.em_bright.source_classification_pe'

Charlie Hoy requested to merge charlie.hoy/em-bright:split_function into main

The purpose of this MR is to split the ligo.em_bright.em_bright.source_classification_pe function into ligo.em_bright.em_bright.source_classification_pe and ligo.em_bright.em_bright.source_classification_from_samples. The prior simply reads in the posterior samples file and passes the posterior samples to ligo.em_bright.em_bright.source_classification_from_samples. The latter computes HasNS, HasRemnant, and HasMassGap probabilities from the posterior samples. This split makes it easier for downstream packages to use this function.

No unit tests were added since it should be covered by the test_em_bright.test_source_classification_pe function.

Merge request reports

Loading