saco.Dataset.load_data
- Dataset.load_data(skip_tables: List[str] = None, set_index: bool = False, validate: bool = False, optional_tables: List[str] = None)
Load data tables, directed graph (waterbody network) and routing matrix.
Sets data, graph and routing_matrix attributes. Load methods use data_folder attribute of Dataset and file_name attributes of tables. See “set” methods to set attributes using in-memory objects.
- Parameters:
skip_tables – Tables to skip (using name attributes of tables, rather than short_name attributes - i.e. generally WRGIS names).
set_index – Whether to set index explicitly on read (not typically required for files written by data preparation routine).
validate – Whether to validate data tables against their schemas (again not typically required after data have been prepared).
optional_tables – Tables to be loaded if available in data_folder but skipped if unavailable. The default (None) indicates that the Fix_Flags table is the only optional table.