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
Bug description @WouterSwierstra tried reading a large iMOD5 model, if I recall correctly: (30, 26, 1200, 1200), and writing it was extremely slow: Over 30 minutes. Just inferring from files, it appeared to be the MetaSWAP recharge package. I asked Wouter to profile it and just analysed the data. The profiler mentioned 87% of the time was spent in this function
. So I think what happened: The msw-sprinkling.wel file was written, but we were still waiting for all the corresponding data files to be written, before the msw-rch.rch could be written. Reproducing it should be quite simple: Just creating some large CAP data grids and seeing what takes very long. Also performance might be worse if loaded as dask.
See Snakeviz table:
The text was updated successfully, but these errors were encountered:
Fixes#1445
It turned out this performance issue pertained from a performance issue
where calling ``xr.DataArray().isin(pd.Series())`` was very slow for
large datasets, whereas ``pd.Series().isin(pd.Series())`` was a lot
faster.
# Description
- Fix performance issue when writing large MODFLOW6 WEL packages
- Add test which tests this performance, I had to add a small pytest
plugin for this.
# Checklist
- [x] Links to correct issue
- [x] Update changelog, if changes affect users
- [x] PR title starts with ``Issue #nr``, e.g. ``Issue #737``
- [x] Unit tests were added
- [ ] **If feature added**: Added/extended example
Uh oh!
There was an error while loading. Please reload this page.
Bug description
@WouterSwierstra tried reading a large iMOD5 model, if I recall correctly: (30, 26, 1200, 1200), and writing it was extremely slow: Over 30 minutes. Just inferring from files, it appeared to be the MetaSWAP recharge package. I asked Wouter to profile it and just analysed the data. The profiler mentioned 87% of the time was spent in this function
imod-python/imod/mf6/wel.py
Line 531 in a5f0cd3
See Snakeviz table:
The text was updated successfully, but these errors were encountered: