The Flood Modeller Python API is a free and open-source python package which provides a bridge between Flood Modeller and the python programming language to extend the capabilities of Flood Modeller in automated workflows
When setting the dataframe of a river section using the .data setter, returns a ValueError.
with new_df.columns != self._required_columns,
new_df.columns is an Index object and self._required_columns is a list, so pandas tries to check whether each element of the index is equal to the whole required columns list.
This should be fixable by using list(new_df.columns), and implementing tests for the setters.
When setting the dataframe of a river section using the .data setter, returns a ValueError.
with
new_df.columns != self._required_columns
,new_df.columns
is an Index object andself._required_columns
is a list, so pandas tries to check whether each element of the index is equal to the whole required columns list.This should be fixable by using
list(new_df.columns)
, and implementing tests for the setters.