Hey guys, sorry to have missed the deadline for the recent release of flopy, but I wanted to point out that the variable irefsp is treated as a zero-indexed variable when writing to file in the ModflowHob package (though not explicitly so-stated in the docstrings) and as a one-indexed variable in the ModflowFlwob package. I'd be more than happy to submit a pull request, but wanted to verify that this was not intended behavior. I'd also clarify this in the docstring to explicitly state whether to the user should supply a zero-indexed value or one-indexed value, depending on which is preferred.
|
line += '{:10d} '.format(t['irefsp'] + 1) |
|
line = '{}{:10d}{:10.4g} {:10.4g}\n'.format(self.obsnam[c], |
|
self.irefsp[c], |
|
self.toffset[c], |
|
self.flwobs[c]) |
Hey guys, sorry to have missed the deadline for the recent release of flopy, but I wanted to point out that the variable
irefspis treated as a zero-indexed variable when writing to file in theModflowHobpackage (though not explicitly so-stated in the docstrings) and as a one-indexed variable in theModflowFlwobpackage. I'd be more than happy to submit a pull request, but wanted to verify that this was not intended behavior. I'd also clarify this in the docstring to explicitly state whether to the user should supply a zero-indexed value or one-indexed value, depending on which is preferred.flopy/flopy/modflow/mfhob.py
Line 271 in e4d9397
flopy/flopy/modflow/mfflwob.py
Lines 277 to 280 in e4d9397