Skip to content

Commit b158bcf

Browse files
committed
Adds 'excluded' flag to experiment mock data
1 parent 496a10d commit b158bcf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/unit_tests/analysis/test_minimization.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ def mock_experiments():
2424
experiments._items = {
2525
"experiment1": MagicMock(
2626
datastore=MagicMock(
27-
pattern=MagicMock(meas=np.array([10.0, 20.0, 30.0]), meas_su=np.array([1.0, 1.0, 1.0]))
27+
pattern=MagicMock(meas=np.array([10.0, 20.0, 30.0]),
28+
meas_su=np.array([1.0, 1.0, 1.0]),
29+
excluded=np.array([False, False, False]))
2830
)
2931
)
3032
}

tests/unit_tests/analysis/test_reliability_factors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def test_get_reliability_inputs():
9595
pattern=Mock(
9696
meas=np.array([10.0, 20.0, 30.0]),
9797
meas_su=np.array([1.0, 1.0, 1.0]),
98+
excluded=np.array([False, False, False])
9899
)
99100
)
100101
)

0 commit comments

Comments
 (0)