mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
str->component in flow control
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
2d01241b53
commit
e34f786c6f
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue