You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The integration tests compare the output states of the HWS model. For #2136 I needed a quick way to eyeball the differences on the map. Sharing my throw-away script here before throwing it away such that I don't have to rewrite it later.
importribasimimportpandasaspdimportgeopandasasgpdnew_path=r"hws_2024_7_0\results\basin_state.arrow"old_path=r"hws_2024_7_0\benchmark\basin_state.arrow"gpkg=r"hws_2024_7_0\database.gpkg"# compute the differencesnew=pd.read_feather(new).set_index("node_id")
old=pd.read_feather(old).set_index("node_id")
dif=new-old# load the spatial Node layer and add the differencesnode=gpd.read_file(gpkg, layer="Node", fid_as_index=True)
basin=node[node.node_type=="Basin"]
basin["dif"] =difbasin["new"] =newbasin["old"] =oldbasin.to_file(
r"hws_2024_7_0\results\basin_dif.gpkg",
driver="GPKG",
index=True,
)
The text was updated successfully, but these errors were encountered:
The integration tests compare the output states of the HWS model. For #2136 I needed a quick way to eyeball the differences on the map. Sharing my throw-away script here before throwing it away such that I don't have to rewrite it later.
The text was updated successfully, but these errors were encountered: