-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #1158 remaining hfb bottlenecks #1159
Issue #1158 remaining hfb bottlenecks #1159
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good.1 comment, approving in advance
@@ -1378,8 +1378,5 @@ def from_imod5_data( | |||
) | |||
simulation["ims"] = solution | |||
|
|||
# cleanup packages for validation | |||
idomain = groundwaterFlowModel.domain | |||
simulation.mask_all_models(idomain) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are a few examples on regridding. Even if they don't need this masking, it may be helpful to modify them to do it anyway to make the reader aware how to mask all the regridded packages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hondsrug example is the example where we regrid a simulation. In this example data is already made consistent, and regridding doesn't introduce any problems. I defer from adding unnecessary calls to the example, as it might lead users to blindly call computationally intensive functions. However, I want to create an example how to import a (problematic) iMOD5 model, where some cleanup needs to be done (for which cleanup utilities have to be made). We could introduce that here. I'll create a separate issue for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See issue here #1164
Quality Gate passedIssues Measures |
ccf9f21
into
imod5_converter_feature_branch
Fixes #1158
Description
Fix remaining HFB bottlenecks. This reduces writing the HFB package from the LHM from 12.5 minutes to 2 minutes.
xu.Ugrid2d.from_structured
, as this is a costly operationand
instead of&
operator in thescalar_None
function, to enable shortcutting.mask_all_packages
function infrom_imod5_data
, call in tests.pixi run unittests
still runs all unittests, by starting two pixi tasksunittests_njit
&unittests_jit
.Checklist
Issue #nr
, e.g.Issue #737