Skip to content

Gridgen to_disu6 errors #678

@mwtoews

Description

@mwtoews

Test t061_test_gridgen.py should add a test for .to_disu6(fname, writevertices). A quick attempt to use the module raises several errors:

>>> g.to_disu6('x.disu', True)
  File "flopy/utils/gridgen.py", line 1302, in to_disu6
    f.write('  NVERT {}\n'.format(gridprops['nvert']))
KeyError: 'nvert'
>>> g.to_disu6('x.disu', False)
Traceback (most recent call last):
  File "flopy/utils/gridgen.py", line 1321, in to_disu6
    a = gridprops[prop]

KeyError: 'ihc'

And further down in the source file, another error:

./flopy/utils/gridgen.py:1341:28: F821 undefined name 'nodes'

Tests for .to_disv6(fname) are also absent (and should also be added), but this method at least writes a file.

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