mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Removing walrus operator
This commit is contained in:
parent
2e716589a1
commit
b4dcc30f92
1 changed files with 4 additions and 5 deletions
|
|
@ -233,12 +233,11 @@ class Model:
|
|||
model.geometry = \
|
||||
openmc.Geometry.from_xml_element(root.find('geometry'), model.materials)
|
||||
|
||||
if tally_node := root.find('tallies'):
|
||||
print(tally_node)
|
||||
model.tallies = openmc.Tallies.from_xml_element(tally_node)
|
||||
if root.find('tallies'):
|
||||
model.tallies = openmc.Tallies.from_xml_element(root.find('tallies'))
|
||||
|
||||
if plots_node := root.find('plots'):
|
||||
model.plots = openmc.Plots.from_xml_element(plots_node)
|
||||
if root.find('plots'):
|
||||
model.plots = openmc.Plots.from_xml_element(root.find('plots'))
|
||||
|
||||
return model
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue