4 space indentation

This commit is contained in:
Martin Diehl 2020-03-03 06:49:46 +01:00
parent 3388098d4a
commit 192f21df37
1 changed files with 7 additions and 7 deletions

View File

@ -67,12 +67,12 @@ class Result():
self.con_physics = [] self.con_physics = []
for c in self.constituents: for c in self.constituents:
self.con_physics += f['/'.join([self.increments[0],'constituent',c])].keys() self.con_physics += f['/'.join([self.increments[0],'constituent',c])].keys()
self.con_physics = list(set(self.con_physics)) # make unique self.con_physics = list(set(self.con_physics)) # make unique
self.mat_physics = [] self.mat_physics = []
for m in self.materialpoints: for m in self.materialpoints:
self.mat_physics += f['/'.join([self.increments[0],'materialpoint',m])].keys() self.mat_physics += f['/'.join([self.increments[0],'materialpoint',m])].keys()
self.mat_physics = list(set(self.mat_physics)) # make unique self.mat_physics = list(set(self.mat_physics)) # make unique
self.selection= {'increments': self.increments, self.selection= {'increments': self.increments,
'constituents': self.constituents, 'constituents': self.constituents,
@ -174,12 +174,12 @@ class Result():
datasets = self.selection[what] datasets = self.selection[what]
last_datasets = datasets.copy() last_datasets = datasets.copy()
for dataset in datasets: for dataset in datasets:
if last_datasets != self.selection[what]: if last_datasets != self.selection[what]:
self._manage_selection('set',what,datasets)
raise Exception
self._manage_selection('set',what,datasets) self._manage_selection('set',what,datasets)
raise Exception last_datasets = self.selection[what]
self._manage_selection('set',what,datasets) yield dataset
last_datasets = self.selection[what]
yield dataset
self._manage_selection('set',what,datasets) self._manage_selection('set',what,datasets)