nwm_region_mgr.formreg.select_formulation.check_gage_formulation_uniqueness#
- nwm_region_mgr.formreg.select_formulation.check_gage_formulation_uniqueness(df_form, config)[source]#
Check that each gage has a unique formulation assigned.
- Return type:
tuple[DataFrame,DataFrame]- Parameters:
df_form – pd.DataFrame DataFrame with selected formulations for each divide.
config – cs.Config Configuration object containing settings for the regionalization.
- Returns:
- tuple[pd.DataFrame, pd.DataFrame]
Tuple containing the new DataFrame with gage-formulation mapping, and the updated DataFrame with divide-formulation mapping and