Skip to content
Snippets Groups Projects
Commit 62f91de1 authored by Emmanuel Branlard's avatar Emmanuel Branlard
Browse files

Fixed ae_file reading when several ae-sets are present

parent 8e10d70d
No related branches found
No related tags found
No related merge requests found
Pipeline #5521 failed
......@@ -35,12 +35,12 @@ class AEFile(object):
lptr = 1
self.ae_sets = {}
for _ in range(1, nsets + 1):
for _ in range(nsets):
set_nr, n_rows = [int(v) for v in lines[lptr ].split()[:2]]
lptr += 1
data = np.array([[float(v) for v in l.split()[:4]] for l in lines[lptr:lptr + n_rows]])
self.ae_sets[set_nr] = data
lptr += n_rows
#for _ in range(nsets):
set_nr, n_rows = [int(v) for v in lines[lptr ].split()[:2]]
lptr += 1
data = np.array([[float(v) for v in l.split()[:4]] for l in lines[lptr:lptr + n_rows]])
self.ae_sets[set_nr] = data
lptr += n_rows
def _value(self, radius, column, set_nr=1):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment