From 6556abc2a869edd970c4adec247f95521df6828f Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Wed, 14 Aug 2019 10:53:49 -0500 Subject: [PATCH] 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. --- tests/dummy_operator.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/dummy_operator.py b/tests/dummy_operator.py index acfdc5b583..cf76f86b59 100644 --- a/tests/dummy_operator.py +++ b/tests/dummy_operator.py @@ -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():