mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Address @paulromano comments in #1068
This commit is contained in:
parent
8bbf269eb4
commit
973016c2d8
3 changed files with 3 additions and 3 deletions
|
|
@ -482,7 +482,7 @@ class IncidentNeutron(EqualityMixin):
|
|||
|
||||
# Write redundant reaction data only for reactions with photon production
|
||||
for rx in self.redundant_reactions.values():
|
||||
if any([p.particle == 'photon' for p in rx.products]):
|
||||
if any(p.particle == 'photon' for p in rx.products):
|
||||
rx_group = rxs_group.create_group('reaction_{:03}'.format(rx.mt))
|
||||
rx.to_hdf5(rx_group)
|
||||
|
||||
|
|
|
|||
|
|
@ -65,6 +65,6 @@ class SourceTestHarness(PyAPITestHarness):
|
|||
return outstr
|
||||
|
||||
|
||||
def test_source():
|
||||
def test_photon_production():
|
||||
harness = SourceTestHarness('statepoint.1.h5')
|
||||
harness.main()
|
||||
|
|
|
|||
|
|
@ -56,6 +56,6 @@ class SourceTestHarness(PyAPITestHarness):
|
|||
return outstr
|
||||
|
||||
|
||||
def test_source():
|
||||
def test_photon_source():
|
||||
harness = SourceTestHarness('statepoint.1.h5')
|
||||
harness.main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue