hydromt.model.components.TablesComponent.read#

TablesComponent.read(filename: str | None = None, **kwargs) None[source]#

Read tables at provided or default file path if none is provided.

Parameters:
  • filename (str | None, optional) – Filename relative to model root. Should contain either a * wildcard character or a {name} placeholder to read multiple files into the data dictionary. All files matching the glob pattern defined by filename will be read. If a {name} placeholder is used, that name will be used as the key in the data dictionary. If no {name} placeholder is used, the filename without extension will be used as the key in the data dictionary. If None, the path that was provided at init will be used.

  • **kwargs – Additional keyword arguments that are passed to the pandas.read_csv function.