Skip to content
Snippets Groups Projects
Commit ff6e4e00 authored by Sacha Duverger's avatar Sacha Duverger
Browse files

Change a bit the same line as previous commit in case there is no MP at all in the simulation

parent 00f68da4
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ class ResultsReader():
self.pstresses, self.pstrains, self.ppressures = [], [], []
self.pmasses, self.pvolumes, self.pmaterials = [], [], []
self.pcell_ids = []
n_mp_max = max([np.max(rd["id"])+1 for rd in self.raw_data])
n_mp_max = np.max([np.max(rd["id"])+1 for rd in self.raw_data])
for df in self.raw_data :
ids = list(df["id"])
......
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