Address @paulromano comments in #1068

This commit is contained in:
amandalund 2018-09-13 11:27:40 -05:00
parent 8bbf269eb4
commit 973016c2d8
3 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -65,6 +65,6 @@ class SourceTestHarness(PyAPITestHarness):
return outstr
def test_source():
def test_photon_production():
harness = SourceTestHarness('statepoint.1.h5')
harness.main()

View file

@ -56,6 +56,6 @@ class SourceTestHarness(PyAPITestHarness):
return outstr
def test_source():
def test_photon_source():
harness = SourceTestHarness('statepoint.1.h5')
harness.main()