diff --git a/openmc/material.py b/openmc/material.py index de4940a47..67615d74c 100644 --- a/openmc/material.py +++ b/openmc/material.py @@ -438,7 +438,7 @@ class Material(IDManagerMixin): params['percent_type'] = percent_type ## check if nuclide - if not str.isalpha(): + if not component.isalpha(): self.add_nuclide(component, **params) else: # is element kwargs = params