Skip to content

Commit d2a8cab

Browse files
authored
Update pcalg.py
1 parent a2cf5b8 commit d2a8cab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

timeawarepc/pcalg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def partial_corr(A,B,S,data):
414414
import numpy as np
415415
from scipy import stats, linalg
416416
p = data.shape[1]
417-
idx = np.zeros(p, dtype=np.bool)
417+
idx = np.zeros(p, dtype=bool)
418418

419419
for i in range(p):
420420
if i in S:
@@ -1818,4 +1818,4 @@ def causaleffin(G,data_trans,lag):
18181818
X0=np.hstack((np.ones((X.shape[0],1)),X))
18191819
lm_out = np.linalg.lstsq(X0,Y,rcond=None)[0]
18201820
causaleff[x,y] = lm_out[regressors.index(x)+1]
1821-
return causaleff
1821+
return causaleff

0 commit comments

Comments
 (0)