ansys: take care of empty lines in point sets
@@ -154,6 +154,9 @@ def read(filename):
# read point data
pts = numpy.empty((num_points, dim))
for k in range(num_points):
+ # skip ahead to the first line with data
+ line = ''
+ while line.strip() == '':
line = next(islice(f, 1)).decode('utf-8')
dat = line.split()
assert len(dat) == dim
