Skip to content

Commit 305d5b9

Browse files
authored
Update tpc.py
1 parent d2a8cab commit 305d5b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

timeawarepc/tpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def cfc_tpc(data,maxdelay=1,subsampsize=50,niter=25,alpha=0.1,thresh=0.25,isgaus
7272
graphobj=dollar(out, "graph")
7373
graph=importr("graph")
7474
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}
75+
graphedgespy={int(key): np.array(re.findall(r'-?\d+\.?\d*', str(graphedges.rx2(str(key))))).astype(int) for key in graphedges.names}
7676
g=nx.DiGraph(graphedgespy)
7777
else:
7878
data_trans_pd=data_trans[r_idx:(r_idx+subsampsize),:]

0 commit comments

Comments
 (0)