mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Cleanup flow control for detecting nuclides
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
85c5c791d6
commit
2d01241b53
1 changed files with 1 additions and 2 deletions
|
|
@ -438,8 +438,7 @@ class Material(IDManagerMixin):
|
|||
params['percent_type'] = percent_type
|
||||
|
||||
## check if nuclide
|
||||
if str.isdigit(component[-1]) or (component[-1] == 'm'
|
||||
and str.isdigit(component[-2])):
|
||||
if not str.isalpha():
|
||||
self.add_nuclide(component, **params)
|
||||
else: # is element
|
||||
kwargs = params
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue