Update test_model.py
added test to check that model creation with Matrix works.
@@ -28,6 +28,13 @@ class TestModelFixed(unittest.TestCase):
pred = m.predict()
assert np.all(pred == rdm)
+ def test_creation_matrix(self):
+ rdm = np.array(np.ones(6, 6))
+ m = model.ModelFixed('Test Model', rdm)
+ m.fit([])
+ pred = m.predict()
+ assert np.all(pred == 1)
+
def test_creation_rdm(self):
from rsatoolbox.rdm import RDMs
rdm = np.array(np.ones(6))
