@@ -251,8 +251,8 @@ def calc_cross_cov_mats_from_data(X, T, mean=None, chunks=None, stride=1,
251251 cov_est /= (n_samples - 1. )
252252 else :
253253 if len (X ) <= T :
254- raise ValueError ('T must be shorter than the length of the shortest ' +
255- 'timeseries. If you are using the DCA model, 2 * DCA.T must be ' +
254+ raise ValueError ('T must be shorter than the length of the shortest ' \
255+ 'timeseries. If you are using the DCA model, 2 * DCA.T must be ' \
256256 'shorter than the shortest timeseries.' )
257257 if mean is None :
258258 mean = X .mean (axis = 0 , keepdims = True )
@@ -413,8 +413,8 @@ def calc_pi_from_data(X, T, proj=None, stride=1, rng=None):
413413 Mutual information in nats.
414414 """
415415 if T % 2 != 0 :
416- raise ValueError ('T must be even (This T sets the joint window length,'
417- + ' not the past or future length' )
416+ raise ValueError ('T must be even (This T sets the joint window length,'
417+ ' not the past or future length' )
418418
419419 ccms = calc_cross_cov_mats_from_data (X , T , stride = stride , rng = rng )
420420
@@ -523,7 +523,8 @@ def calc_pi_from_cross_cov_mats(cross_cov_mats, proj=None):
523523 """
524524
525525 if len (cross_cov_mats ) % 2 != 0 :
526- raise ValueError ('number of cross covariance matrices provided must be even (equal to joint window length)' )
526+ raise ValueError ('number of cross covariance matrices provided must be even'
527+ '(equal to joint window length)' )
527528
528529 if proj is not None :
529530 cross_cov_mats_proj = project_cross_cov_mats (cross_cov_mats , proj )
0 commit comments