posydon.visualization.VH_diagram

posydon.visualization.VH_diagram.GraphVisualizer

posydon.visualization.VH_diagram.MainWindow

posydon.visualization.VH_diagram.MathTextLabel

posydon.visualization.VH_diagram.OptionsWindow

posydon.visualization.VH_diagram.ParseDataFrame

Counting distincts occurence of binary simulation from a file

class posydon.visualization.VH_diagram.ParseDataFrame.ParseDataFrame(filename, path='./', key='history', column_list=['state', 'event', 'S1_state', 'S2_state'], index_name='binary_index', start=None, stop=None, chunk_size=500000)[source]

Bases: object

Handle the binary parsing

get_frequencies()[source]
get_most_numpy(k)[source]
parse_dataf_gb_iter_chunk(index_list, cnt)[source]

a more relevant parser imo but turns out to take more time than than groupby/apply

posydon.visualization.VH_diagram.Presenter

posydon.visualization.VH_diagram.PresenterMode

The definition of the PresenterMode class in VH diagram.

class posydon.visualization.VH_diagram.PresenterMode.PresenterMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

The different view for the Presenter.

DETAILED = 4
DIAGRAM = 1
REDUCED = 2
SIMPLIFIED = 3

posydon.visualization.VH_diagram.PresenterMultiple

posydon.visualization.VH_diagram.SimulationModel

The definition of the SimulationModel class.

class posydon.visualization.VH_diagram.SimulationModel.SimulationModel(filename, path='./')[source]

Bases: object

Model containing the dataset of simulations.

Initialize a SimulationModel instance.

get_by_binary_index(index)[source]

Return a copy of dataframe’s slice with binary_index == index.

Parameters:

index (int) – Binary index wanted.

Returns:

Copy of a sub-dataframe with binary_index == index

Return type:

pandas.DataFrame

load_csv()[source]

Load dataframe as CSV with .gz compression.