From 5c86ccb455e3b4cdf48ecf3936a215f934ba902c Mon Sep 17 00:00:00 2001 From: Mike Taves Date: Wed, 16 Oct 2019 12:34:08 +1300 Subject: [PATCH] refactor(namefile): format values with str() and remove extra "; " --- autotest/t007_test.py | 2 +- flopy/discretization/grid.py | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) 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: