diff --git a/autotest/t007_test.py b/autotest/t007_test.py index 9d8fdc8de6..975b27f82a 100644 --- a/autotest/t007_test.py +++ b/autotest/t007_test.py @@ -548,7 +548,7 @@ def test_mg(): ms.modelgrid.set_coord_info() xll, yll = 321., 123. - angrot = 20 + angrot = 20. ms.modelgrid = flopy.discretization.StructuredGrid(delc=ms.dis.delc.array, delr=ms.dis.delr.array, xoff=xll, yoff=xll, diff --git a/flopy/discretization/grid.py b/flopy/discretization/grid.py index 5d71e89aa3..1a39bd7d44 100644 --- a/flopy/discretization/grid.py +++ b/flopy/discretization/grid.py @@ -162,19 +162,20 @@ def __init__(self, grid_type=None, top=None, botm=None, idomain=None, # access to basic grid properties ################################### def __repr__(self): + items = [] if self.xoffset is not None and self.yoffset is not None \ and self.angrot is not None: - s = "xll:{0:<.10G}; yll:{1:<.10G}; rotation:{2: