parent
c29e3650f3
commit
aecf2f539e
|
@ -268,6 +268,7 @@ class ConfigMaterial(Config):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _constituents(N=1,**kwargs):
|
def _constituents(N=1,**kwargs):
|
||||||
"""Construct list of constituents."""
|
"""Construct list of constituents."""
|
||||||
|
N_material=1
|
||||||
for v in kwargs.values():
|
for v in kwargs.values():
|
||||||
if hasattr(v,'__len__') and not isinstance(v,str): N_material = len(v)
|
if hasattr(v,'__len__') and not isinstance(v,str): N_material = len(v)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue