pytuflow.LP2D.add_csv

Contents

pytuflow.LP2D.add_csv#

LP2D.add_csv(fpath)#

Dynamically add one or more 2d_lp CSV files to the output. The files can be for new locations (line labels) and/or new data types. If a file for the same location and data type has already been loaded, it is replaced.

Parameters:

fpath (PathLike | Sequence[PathLike]) – The CSV file path(s) to add.

Return type:

None

Examples

>>> lp = LP2D('/path/to/model_LP_NAME_H.csv')
>>> lp.add_csv('/path/to/model_LP_NAME_V.csv')
>>> lp.data_types()
['bed level', 'water level', 'velocity', 'max water level', 'max velocity']