Skip to content

SFR package load issue #671

@John1205

Description

@John1205

I am loading a groundwater model built with MODFLOW-NWT in Santa Rose Plain. The files can be downloaded here. The packages (SFR, HFB ) were not loaded successfully. When I load the package, the model shows the following error. Can anyone help me with this issue? Thanks.

sfr = flopy.modflow.ModflowSfr2.load(f, model = ml)
loading sfr2 package file...
Traceback (most recent call last):

File "", line 1, in
sfr = flopy.modflow.ModflowSfr2.load(f, model = ml)

File "C:\Users\liqia\AppData\Local\Continuum\anaconda3\lib\site-packages\flopy\modflow\mfsfr2.py", line 885, in load
_get_dataset(f.readline(), [0.0] * 8))

File "C:\Users\liqia\AppData\Local\Continuum\anaconda3\lib\site-packages\flopy\modflow\mfsfr2.py", line 2781, in _get_dataset
dataset[i] = n

IndexError: list assignment index out of range

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