Skip to content

Commit c2606c0

Browse files
committed
add tests for UnknownT2Model
1 parent b79b218 commit c2606c0

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/qinfer/tests/test_concrete_models.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
)
5656
import abc
5757
from qinfer import (
58-
SimplePrecessionModel, SimpleInversionModel,
58+
SimplePrecessionModel, SimpleInversionModel, UnknownT2Model,
5959
CoinModel, NoisyCoinModel, NDieModel,
6060
RandomizedBenchmarkingModel,
6161
PoisonedModel, BinomialModel, MultinomialModel,
@@ -95,6 +95,18 @@ def instantiate_prior(self):
9595
def instantiate_expparams(self):
9696
return np.arange(10,20).astype(self.model.expparams_dtype)
9797

98+
class TestUnknownT2Model(ConcreteModelTest, DerandomizedTestCase):
99+
"""
100+
Tests UnknownT2Model.
101+
"""
102+
103+
def instantiate_model(self):
104+
return UnknownT2Model()
105+
def instantiate_prior(self):
106+
return UniformDistribution(np.array([[1,8],[1,5]]))
107+
def instantiate_expparams(self):
108+
return np.linspace(0,5,10, dtype=[('t','float')])
109+
98110
class TestSimpleInversionModel(ConcreteDifferentiableModelTest, DerandomizedTestCase):
99111
"""
100112
Tests SimpleInversionModel.

0 commit comments

Comments
 (0)