Skip to content

Discrepancy in treatment of observation variable irefsp #586

@jbellino-usgs

Description

@jbellino-usgs

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])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions