mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Merge pull request #1551 from drewejohnson/reduce-to-xml
Don't write reaction targets that are None to XML
This commit is contained in:
commit
a8ef1ea195
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ class Nuclide:
|
|||
rx_elem = ET.SubElement(elem, 'reaction')
|
||||
rx_elem.set('type', rx)
|
||||
rx_elem.set('Q', str(Q))
|
||||
if rx != 'fission' or daughter is not None:
|
||||
if daughter is not None:
|
||||
rx_elem.set('target', daughter)
|
||||
if br != 1.0:
|
||||
rx_elem.set('branching_ratio', str(br))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue