Skip to content

popsummary sometimes fails to find keys for data products

Here is a code snippet showing an example what I want to prevent. This is one for the popsummary result files from the O4a data release. When I open the file directly with h5py, it shows me that it has the following rates_on_grids data products stored.<KeysViewHDF5 ['p(a)', 'p(cos_tilt)', 'p(m_1)', 'p(q)', 'rate_vs_mass_1_at_z0-2', 'rate_vs_mass_ratio_at_z0-2', 'rate_vs_redshift']>`

However, when I query get_rates_on_grids_keys I get this

Screenshot 2025-10-09 at 1.45.55 PM.png

The PopulationResult object made knows that it has some rates_on_grids datasets. When I pass a correct key, it correctly returns a dataproduct. The intended behavior is that popsummary should dynamically be able to query the keys and return them