Skip to content

Commit 2cd661a

Browse files
committed
fix typo in total_xs helper
1 parent 9ff3d4c commit 2cd661a

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

mcdc/transport/physics/interface.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,11 @@ def total_xs(particle_container, simulation, data):
5151
"""
5252
particle = particle_container[0]
5353
if particle["particle_type"] == PARTICLE_NEUTRON:
54-
type = NEUTRON_REACTION_TOTAL
55-
return neutron.macro_xs(type, particle_container, simulation, data)
54+
total = NEUTRON_REACTION_TOTAL
55+
return neutron.macro_xs(total, particle_container, simulation, data)
5656
elif particle["particle_type"] == PARTICLE_ELECTRON:
57-
module = electron
58-
type = ELECTRON_REACTION_TOTAL
59-
return neutron.macro_xs(type, particle_container, simulation, data)
57+
total = ELECTRON_REACTION_TOTAL
58+
return electron.macro_xs(total, particle_container, simulation, data)
6059
return 0.0
6160

6261

0 commit comments

Comments
 (0)