Skip to content

Commit

Permalink
codacy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
langevin-usgs committed Jun 21, 2019
1 parent c97c6c8 commit b99c872
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion flopy/export/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion flopy/utils/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b99c872

Please sign in to comment.