mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Changed split_nuclide script to use exponential format.
This commit is contained in:
parent
b736b1bc59
commit
02ff6c6835
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ ao = float(sys.argv[2])
|
|||
for line in open('abundances_modified.txt','r'):
|
||||
words = line.split()
|
||||
if words[1] == element:
|
||||
print('<nuclide name="{0}-{1}" ao="{2}" />'.format(
|
||||
print('<nuclide name="{0}-{1}" ao="{2:10.4e}" />'.format(
|
||||
element, words[2], float(words[3])*ao*0.01))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue