Add empty fission yields to tests.TestChain

This object is used in unit testing the depletion schemes, where
the depletion matrix is pre-defined and there is no
need for fission yields. However, the depletion interface
expects the chain to have a fission_yields attribute.
This commit is contained in:
Andrew Johnson 2019-08-14 10:53:49 -05:00
parent c1d66bc022
commit 6556abc2a8
No known key found for this signature in database
GPG key ID: 253418E91B7F6FEB

View file

@ -7,6 +7,13 @@ from openmc.deplete.abc import TransportOperator, OperatorResult
class TestChain(object):
"""Empty chain to assist with unit testing depletion routines
Only really provides the form_matrix function, but acts like
a real Chain
"""
fission_yields = [None]
@staticmethod
def get_thermal_fission_yields():