Commit d738a6cb authored by Eva Börgens's avatar Eva Börgens
Browse files

coordinates read from ascii file needs to be converted from list to numpy array

parent 262b46d3
......@@ -59,6 +59,7 @@ def read_ascii(filename: str) -> np.ndarray:
continue
line = [float(i) for i in re.split(r'\s+', l_i.strip())]
coords.append([line[0], line[1]])
coords = np.array(coords)
except Exception:
print("Could not read %s: Please ensure that every line contains two columns and "
"comment lines are indicated with '#'" %filename)
......
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