Skip to content

Commit

Permalink
Merge pull request #76 from CardiacModelling/typo-fix
Browse files Browse the repository at this point in the history
Fix issue in generate_kml
  • Loading branch information
MichaelClerx committed Aug 15, 2023
2 parents c0418d5 + fd6ff80 commit 57b0b9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nevis/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def make_coords(x, y):
return f'{lon},{lat}'

marks = []
if labels:
if labels is not None:
for label, p in labels.items():
if isinstance(p, nevis.Coords):
p = p.grid
Expand All @@ -171,7 +171,7 @@ def make_coords(x, y):
)
)

if points:
if points is not None:
for i, (x, y) in enumerate(points):
marks.append(
KML.Placemark(
Expand All @@ -183,7 +183,7 @@ def make_coords(x, y):
)
)

if trajectory:
if trajectory is not None:
for i, (x, y) in enumerate(trajectory):
marks.append(
KML.Placemark(
Expand Down

0 comments on commit 57b0b9c

Please sign in to comment.