Skip to content

Commit

Permalink
gli.add_polyline: remove unnecessary type check
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Jul 6, 2019
1 parent 4e8fbb2 commit bf5d684
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ogs5py/fileclasses/gli/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,10 +681,7 @@ def add_polyline(
}
# add by coordinates
elif (
np.issubdtype(points.dtype, np.floating)
and points.ndim == 2
and points.shape[0] >= 2
and points.shape[1] == 3
points.ndim == 2 and points.shape[0] >= 2 and points.shape[1] == 3
):
if closed:
points = np.vstack((points, points[0]))
Expand Down

0 comments on commit bf5d684

Please sign in to comment.