-
Notifications
You must be signed in to change notification settings - Fork 320
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
fix(gridintersect): gridintersect does not work for rotated vertex grids #2107
fix(gridintersect): gridintersect does not work for rotated vertex grids #2107
Conversation
- add local kwarg to force gridintersect to use local model coordinates - update docstring - formatting - add tests for rotated vertexgrids and test local kwarg.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #2107 +/- ##
=========================================
- Coverage 73.0% 73.0% -0.1%
=========================================
Files 259 259
Lines 59415 59396 -19
=========================================
- Hits 43401 43386 -15
+ Misses 16014 16010 -4
|
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.
if I understand #2106 this will change the existing behavior, I wonder if it is safer if local
defaults true for now, and switches to false with the next major release?
You're right that this will change the default, but only for VertexGrids. The structured grids methods dealt with the rotated offset grids correctly. So to keep current behavior I can set local to None by default and distinguish between the following routes:
In the next major release we can set Would that be a good solution? |
Since defaulting false makes structured and vertex grids consistent I see your case now to consider it a fix not a breaking change and do it now. And then we don't have to remember to switch with flopy 4 |
This PR fixes #2106.
local
kwarg that uses local model coordinates to build intersection grid if set to True.When looking through the documentation of the Grid objects I came across some entries under Attributes and Methods that do not seem to be used:
Grid._cache_dict
I removed them now in this PR, but if this is best fixed/improved in a separate PR, let me know.