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
We conduct a groupby by x, y, id, filter_top and filter_bottom. There unfortunately are cases where this results in non-unique groupby's and hence rates should be summed. This is at least going wrong in steady-state:
# imod.mf6.wel.py
...
def_df_groups_to_da_rates(
unique_well_groups: pd.api.typing.DataFrameGroupBy,
) ->xr.DataArray:
# Convert dataframes all groups to DataArraysis_steady_state="time"notinunique_well_groups[0].columnsifis_steady_state:
da_groups= [
xr.DataArray(df_group["rate"].iloc[0]) fordf_groupinunique_well_groups
]
...
The .iloc[0] selects the first entry in this group (Assuming there is always only one entry). Instead a call to sum() should be made.
The text was updated successfully, but these errors were encountered:
We conduct a groupby by x, y, id, filter_top and filter_bottom. There unfortunately are cases where this results in non-unique groupby's and hence rates should be summed. This is at least going wrong in steady-state:
The
.iloc[0]
selects the first entry in this group (Assuming there is always only one entry). Instead a call tosum()
should be made.The text was updated successfully, but these errors were encountered: