str->component in flow control

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Olek 2022-09-07 11:52:06 -05:00 committed by GitHub
parent 2d01241b53
commit e34f786c6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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