mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Fixed bug in Nuclide hyphen strip
This commit is contained in:
parent
043c56f338
commit
8bc7afe91f
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ class Nuclide(object):
|
|||
check_type('name', name, basestring)
|
||||
|
||||
if '-' in name:
|
||||
new_name = name.strip('-', '')
|
||||
new_name = name.replace('-', '')
|
||||
msg = 'OpenMC nuclide names follow the GND standard. Nuclide ' \
|
||||
'"{}" is being transformed to "{}".'.format(name, new_name)
|
||||
warnings.warn(msg, DeprecationWarning)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue