small codestyle stuff in tests
@@ -99,15 +99,18 @@ class TestCompareRDM(unittest.TestCase):
from rsatoolbox.rdm.compare import compare_neg_riemannian_distance
dataset1 = []
for i_subj in range(1):
- dataset1.append(rsa.data.Dataset(np.random.rand(6, 20), descriptors={'subj':i_subj}))
+ dataset1.append(rsa.data.Dataset(np.random.rand(6, 20),
+ descriptors={'subj': i_subj}))
dataset2 = []
for i_subj in range(5):
- dataset2.append(rsa.data.Dataset(np.random.rand(6, 20), descriptors={'subj':i_subj}))
+ dataset2.append(rsa.data.Dataset(np.random.rand(6, 20),
+ descriptors={'subj': i_subj}))
dataset3 = []
for i_subj in range(7):
- dataset3.append(rsa.data.Dataset(np.random.rand(6, 20), descriptors={'subj':i_subj}))
+ dataset3.append(rsa.data.Dataset(np.random.rand(6, 20),
+ descriptors={'subj': i_subj}))
rdms1 = rsa.rdm.calc_rdm(dataset1, method='euclidean')
rdms2 = rsa.rdm.calc_rdm(dataset2, method='euclidean')
@@ -120,7 +123,6 @@ class TestCompareRDM(unittest.TestCase):
assert result.shape[1] == 7
assert np.all(result < 0)
-
def test_compare_corr_loop(self):
from rsatoolbox.rdm.compare import compare_correlation
result = compare_correlation(self.test_rdm2, self.test_rdm3)
