| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Looks good, I have one suggestion to avoid using deprecated pandas functionality
Sorry, something went wrong.
| if compound_dataframe is None: | ||
| compound_dataframe = geometry_layer | ||
| else: | ||
| compound_dataframe = compound_dataframe._append(geometry_layer) |
There was a problem hiding this comment.
Appending to pandas dataframes is deprecated. Collecting the dataframes in a list and concatenating is preferred:
| if compound_dataframe is None: | |
| compound_dataframe = geometry_layer | |
| else: | |
| compound_dataframe = compound_dataframe._append(geometry_layer) | |
| compound_ls.append(geometry_layer) | |
| compound_dataframe = pd.concat(compound_ls, axis="index") |
Sorry, something went wrong.
Follow-up on: #1070 # Description For some reason, I erronously merged #1070. This implements my suggestion to concatenate pandas dataframes. # Checklist <!--- Before requesting review, please go through this checklist: --> - [x] Links to correct issue - [ ] Update changelog, if changes affect users - [x] PR title starts with ``Issue #nr``, e.g. ``Issue #737`` - [ ] Unit tests were added - [ ] **If feature added**: Added/extended example --------- Co-authored-by: luitjan <luitjan.slooten@deltares.nl>
| Back | FazBrowse Home | New Git URL |
Fixes #502
Description
Converts hfb's from imod5 to mf6, but only in the following cases:
It creates a single mf6 hfb package containing all the hfb's that are present in the model domain area.
The hfb package is added to the simulation.
Checklist