polishing
This commit is contained in:
parent
9459fea929
commit
58ac99831c
|
@ -1405,8 +1405,8 @@ class Result:
|
||||||
r = {}
|
r = {}
|
||||||
|
|
||||||
output_ = set([output] if isinstance(output,str) else output)
|
output_ = set([output] if isinstance(output,str) else output)
|
||||||
constituents_ = range(self.N_constituents) if constituents is None else \
|
constituents_ = constituents if isinstance(constituents,Iterable) else \
|
||||||
constituents if isinstance(constituents,Iterable) else [constituents]
|
(range(self.N_constituents) if constituents is None else [constituents])
|
||||||
|
|
||||||
suffixes = [''] if self.N_constituents == 1 or isinstance(constituents,int) else \
|
suffixes = [''] if self.N_constituents == 1 or isinstance(constituents,int) else \
|
||||||
[f'#{c}' for c in constituents_]
|
[f'#{c}' for c in constituents_]
|
||||||
|
@ -1422,7 +1422,7 @@ class Result:
|
||||||
for c in range(self.N_constituents):
|
for c in range(self.N_constituents):
|
||||||
at_cell_ph.append({label: np.where(f['/'.join((grp,'phase'))][:,c][name] == label.encode())[0] \
|
at_cell_ph.append({label: np.where(f['/'.join((grp,'phase'))][:,c][name] == label.encode())[0] \
|
||||||
for label in self.visible['phases']})
|
for label in self.visible['phases']})
|
||||||
in_data_ph.append({label: f['/'.join((grp,'phase'))][member][at_cell_ph[c][label]][...,c] \
|
in_data_ph.append({label: f['/'.join((grp,'phase'))][member][at_cell_ph[c][label]][:,c] \
|
||||||
for label in self.visible['phases']})
|
for label in self.visible['phases']})
|
||||||
|
|
||||||
at_cell_ho = {label: np.where(f['/'.join((grp,'homogenization'))][:][name] == label.encode())[0] \
|
at_cell_ho = {label: np.where(f['/'.join((grp,'homogenization'))][:][name] == label.encode())[0] \
|
||||||
|
|
Loading…
Reference in New Issue