revert, since not working in python3.8...
This commit is contained in:
parent
822a098659
commit
d374f6a02c
|
@ -232,9 +232,9 @@ class ConfigMaterial(Config):
|
||||||
|
|
||||||
_,idx = np.unique(np.hstack(list(kwargs_.values())),return_index=True,axis=0)
|
_,idx = np.unique(np.hstack(list(kwargs_.values())),return_index=True,axis=0)
|
||||||
idx = np.sort(idx)
|
idx = np.sort(idx)
|
||||||
kwargs_ = {'phase':'phase_label',
|
kwargs_ = {k:np.atleast_1d(v[idx].squeeze()) for k,v in kwargs_.items()}
|
||||||
'homogenization': 'homogenization_label'} \
|
for what in ['phase','homogenization']:
|
||||||
| {k:np.atleast_1d(v[idx].squeeze()) for k,v in kwargs_.items()}
|
if what not in kwargs_: kwargs_[what] = what+'_label'
|
||||||
|
|
||||||
return ConfigMaterial().material_add(**kwargs_)
|
return ConfigMaterial().material_add(**kwargs_)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue