Skip to content

Commit d84394f

Browse files
committed
colors
1 parent 9360d7d commit d84394f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

csnanalysis/csn.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ def colors_from_committors(self,comm):
126126
for node in range(self.nnodes):
127127
maxc = comm[node,:].max()
128128
for i in range(min(3,nbasin)):
129+
if node not in rgb:
130+
rgb[node] = {}
129131
rgb[node][colors[i]] = highc*comm[node,i]/maxc
130132

131133
return rgb

0 commit comments

Comments
 (0)