mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
replace only first instance of 6012 in graphite sab lib
This commit is contained in:
parent
c929ccc421
commit
da57eb14b3
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ print('Changing graphite ZAID from 6012 to 6000')
|
|||
graphite = os.path.join('nndc', 'tsl', 'graphite.acer')
|
||||
with open(graphite) as fh:
|
||||
text = fh.read()
|
||||
text = text.replace('6012', '6000')
|
||||
text = text.replace('6012', '6000', 1)
|
||||
with open(graphite, 'w') as fh:
|
||||
fh.write(text)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue