read_lnp_data¶
- beast.tools.read_beast_data.read_lnp_data(filename, nstars=None, shift_lnp=True)[source]¶
Read in the sparse lnp for all the stars in the hdf5 file
- Parameters:
- filenamestring
name of the file with the sparse lnp values
- nstarsint (default=None)
if you want to check that the number of lnp values is correct, set this to the number of stars expected in the file
- shift_lnpboolean (default=True)
if True, shift lnp values to have a max of 0.0
- Returns:
- lnp_datadictonary
contains arrays of the lnp values and indices to the BEAST model grid