[DBG] style fix in rdm
@@ -7,7 +7,7 @@ Definition of RSA RDMs class and subclasses
import numpy as np
from scipy.spatial.distance import squareform
-# import pyrsa as rsa
+
class RDMs:
"""
@@ -17,13 +17,16 @@ class RDMs:
dissimilarities (numpy.ndarray):
either a 2d np-array (n_rdm x vectorform of dissimilarities)
or a 3d np-array (n_rdm x n_cond x n_cond)
- dissimilarity_measure (String): a description of the dissimilarity measure
- (e.g. 'Euclidean')
- descriptors (dict): descriptors with 1 value per RDMs object
+ dissimilarity_measure (String):
+ a description of the dissimilarity measure (e.g. 'Euclidean')
+ descriptors (dict):
+ descriptors with 1 value per RDMs object
Returns:
RDMs object
"""
- def __init__(self, dissimilarities=None, dissimilarity_measure=None, descriptors=None):
+ def __init__(self, dissimilarities=None,
+ dissimilarity_measure=None,
+ descriptors=None):
if (dissimilarities.ndim == 2):
self.dissimilarities = dissimilarities
self.n_rdm = self.measurements.shape[0]
