topotherm.utils

Functions

create_dir(path)

Creates a directory if it does not exist and deletes old results.

solver_to_df(result, model)

Returns solver results in a dataframe. This needs to be adapted to the

model_to_df(model)

Converts a solved pyomo model to a pandas dataframe.

Module Contents

topotherm.utils.create_dir(path)[source]

Creates a directory if it does not exist and deletes old results.

Args:

path (str): path to directory

Parameters:

path (str)

Return type:

None

topotherm.utils.solver_to_df(result, model)[source]

Returns solver results in a dataframe. This needs to be adapted to the solver output (gurobi vs cplex have different naming conventions)

topotherm.utils.model_to_df(model)[source]

Converts a solved pyomo model to a pandas dataframe.