Skip to content

cbcBayesMCMC2pos.py: remove duplicate metadata of posterior samples

Description

This fixes #250 (closed).

cbcBayesMCMC2pos copies all of the metadata from the original posterior samples .hdf5 file to the output .hdf5 file. Some copied metadata are duplicated with columns, which causes errors when ligo.skymap reads the posterior samples. This patch removes metadata duplicated with columns to solve this issue.

cc: @vivien @cjhaster

API Changes and Justification

Backwards Compatible Changes

  • This change introduces no API changes
  • This change adds new API calls

Backwards Incompatible Changes

  • This change modifies an existing API
  • This change removes an existing API

If any of the Backwards Incompatible check boxes are ticked please provide a justification why this change is necessary and why it needs to be done in a backwards incompatible way.

Review Status

Please provide details on any reviews related to this change and and the associated reviewers.

Edited by Soichiro Morisaki

Merge request reports