Commit 26bd1313 authored by Kris Vanneste's avatar Kris Vanneste
Browse files

Ensure lons and lats are arrays in __init__ method of MultiPointData.

git-svn-id: https://svn.seismo.oma.be/svn/seismo/mapping/layeredbasemap/trunk@7573 40b490c5-b4d9-47cb-8714-9bef99b524d5
parent 66ce1bd2
......@@ -190,8 +190,8 @@ class MultiPointData(MultiData):
(default: None --> {})
"""
def __init__(self, lons, lats, z=None, values=None, labels=None, style_params=None):
self.lons = lons
self.lats = lats
self.lons = np.asarray(lons)
self.lats = np.asarray(lats)
self.z = z or [None] * len(lons)
self.values = values or []
self.labels = labels or []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment