-
Notifications
You must be signed in to change notification settings - Fork 318
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
refactor(datafiles): use 0-based kstp/kper indexing #2000
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #2000 +/- ##
=========================================
+ Coverage 72.7% 72.8% +0.1%
=========================================
Files 258 259 +1
Lines 58828 59101 +273
=========================================
+ Hits 42797 43058 +261
- Misses 16031 16043 +12
|
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.
My recommendation on this would be to deprecate the .kstpkper' member variable, since it doesn't behave the way we want anyway (1-based), and keep the
.get_kstpkper()method instead. Maybe we put a leading underscore in front of
._kstpkper`? In the modflow6 repo we use the get_kstpkper() method pretty widely.
Ok will leave |
maybe it would be safest just to clearly document that |
I think it's preferable to leave |
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.
I am ok with this change although it may cause people who were using .kstpkper directly instead of using get_kstpkper().
We could convert the internal variable to |
Pending more discussion and a decision on whether to deprecate I restored |
Prompted by #1338
Plan originally proposed/implemented but abandoned (see discussion below):
kstpkper
attribute andget_kstpkper()
methodget_kstpkper()
method (redundant)LayerFile
and childrenBinaryLayerFile
and childrenCellBudgetFile