ParametricSolution.from_csv

classmethod ParametricSolution.from_csv(file, prefix_flow: str = 'edge', prefix_potential: str = 'node') paminco._base.ParametricSolution[source]

Build ParametricSolution from CSV.

Parameters
filestr, path object or file-like object

File passed to pandas.read_csv().

prefix_flowstr, default=”edge”

Prefix of columns in df that hold edge flows. Column names are expected to be strings of the form f"{prefix_flow}_{idx}".

prefix_potentialstr, default=”node”

Prefix of columns that hold node potentials. Same column naming convention as for prefix_flow applies.

Returns
ParametricSolution