Skip to content

Commit

Permalink
minor fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariosmsk committed Apr 19, 2024
1 parent 9cc6851 commit 3605ad7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions epyt/epanet.py
Original file line number Diff line number Diff line change
Expand Up @@ -14458,13 +14458,11 @@ def ENgetvertex(self, index, vertex):
x the vertex's X-coordinate value.
y the vertex's Y-coordinate value.
"""
x = c_double() # need double for EN_ or EN functions.
y = c_double()
if self._ph is not None:
x = c_double()
y = c_double()
self.errcode = self._lib.EN_getvertex(self._ph, int(index), vertex, byref(x), byref(y))
else:
x = c_float()
y = c_float()
self.errcode = self._lib.ENgetvertex(int(index), vertex, byref(x), byref(y))

self.ENgeterror()
Expand Down

0 comments on commit 3605ad7

Please sign in to comment.