We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2a8cab commit 305d5b9Copy full SHA for 305d5b9
1 file changed
timeawarepc/tpc.py
@@ -72,7 +72,7 @@ def cfc_tpc(data,maxdelay=1,subsampsize=50,niter=25,alpha=0.1,thresh=0.25,isgaus
72
graphobj=dollar(out, "graph")
73
graph=importr("graph")
74
graphedges=graph.edges(graphobj)#, "matrix")
75
- graphedgespy={int(key): np.array(re.findall(r'-?\d+\.?\d*', str(graphedges.rx2(key)))[1:]).astype(int) for key in graphedges.names}
+ graphedgespy={int(key): np.array(re.findall(r'-?\d+\.?\d*', str(graphedges.rx2(str(key))))).astype(int) for key in graphedges.names}
76
g=nx.DiGraph(graphedgespy)
77
else:
78
data_trans_pd=data_trans[r_idx:(r_idx+subsampsize),:]
0 commit comments