Skip to content

Commit 04f6089

Browse files
authored
Update tpc.py
1 parent 3c790f8 commit 04f6089

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

timeawarepc/tpc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import numpy as np
55
import pandas as pd
66
from timeawarepc.tpc_helpers import *
7-
from timeawarepc.pcalg import *
7+
from timeawarepc.pcalg import estimate_skeleton, estimate_cpdag, ci_test_gauss
88
import rpy2.robjects as robjects
99
from rpy2.robjects.packages import importr
1010
import rpy2.rlike.container as rlc
@@ -151,5 +151,5 @@ def cfc_pc(data,alpha,isgauss=False):
151151

152152
weights = causaleff_ida(g,data)
153153
adjacency=nx.adjacency_matrix(g).toarray()
154-
return adjacency, weights
154+
return adjacency, weights*adjacency
155155
# %%

0 commit comments

Comments
 (0)