mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
add explicit settings in dummy_operator for unit_tests
This commit is contained in:
parent
885f4c6acb
commit
78a3e7b937
1 changed files with 3 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from collections import namedtuple
|
||||
from unittest.mock import Mock
|
||||
|
||||
import numpy as np
|
||||
import scipy.sparse as sp
|
||||
|
|
@ -133,6 +134,8 @@ class DummyOperator(TransportOperator):
|
|||
self.prev_res = previous_results
|
||||
self.chain = TestChain()
|
||||
self.output_dir = "."
|
||||
self.settings = Mock()
|
||||
self.settings.particles = 10
|
||||
|
||||
def __call__(self, vec, power, print_out=False):
|
||||
"""Evaluates F(y)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue