The definition of the SimulationModel class.

class posydon.visualization.VH_diagram.SimulationModel.SimulationModel(filename, path='./', binary=False)[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.