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:
  • filename (string) – name of the file with the sparse lnp values

  • nstars (int (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_lnp (boolean (default=True)) – if True, shift lnp values to have a max of 0.0

Returns:

lnp_data – contains arrays of the lnp values and indices to the BEAST model grid

Return type:

dictonary