filter_bin_state

cosmic.utils.filter_bin_state(bcm, bpp, method, kstar1_range, kstar2_range)[source]

Filter the output of bpp and bcm, where the kstar ranges have already been selected by the conv_select module

Parameters:
bcmpandas.DataFrame

bcm dataframe

bpppandas.DataFrame

bpp dataframe

methoddict,

one or more methods by which to filter the bpp or bcm table, e.g. {'binary_state' : [0,1]}; This means you do not want to select the final state of the binaries in the bcm array

kstar1_rangelist

list containing all kstar1 values to retain

kstar2_rangelist

list containing all kstar2 values to retain

Returns:
bcmpandas.DataFrame

filtered bcm dataframe