From b99c872f9df4cd6c2510564a5efad5e0146a241d Mon Sep 17 00:00:00 2001 From: Christian Langevin Date: Fri, 21 Jun 2019 13:43:25 -0500 Subject: [PATCH] codacy fixes --- flopy/export/utils.py | 3 ++- flopy/utils/geometry.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/flopy/export/utils.py b/flopy/export/utils.py index ccc4bb86ba..030be51561 100644 --- a/flopy/export/utils.py +++ b/flopy/export/utils.py @@ -1171,7 +1171,8 @@ def export_contourf(filename, contours, fieldname='level', epsg=None, for ncp, cp in enumerate(contour_path.to_polygons()): x = cp[:, 0] y = cp[:, 1] - new_shape = geometry.Polygon([(i[0], i[1]) for i in zip(x, y)]) + new_shape = geometry.Polygon([(i[0], i[1]) + for i in zip(x, y)]) if ncp == 0: poly = new_shape else: diff --git a/flopy/utils/geometry.py b/flopy/utils/geometry.py index a4e50e0eb5..84e1c570c3 100644 --- a/flopy/utils/geometry.py +++ b/flopy/utils/geometry.py @@ -85,7 +85,8 @@ def geojson(self): @property def pyshp_parts(self): - from ..export.shapefile_utils import import_shapefile, shapefile_version + from ..export.shapefile_utils import (import_shapefile, + shapefile_version) # exterior ring must be clockwise (negative area) # interiors rings must be counter-clockwise (positive area)