@@ -369,7 +369,6 @@ def extract_element(atom_name):
369369
370370 edgecolors = np .array (list (colors .values ()))
371371 if highlight is not None and len (highlight ) > 0 :
372- print (highlight )
373372 edgecolors [highlight ] = 'black'
374373
375374 # Visualize the graph
@@ -577,7 +576,7 @@ def run(self):
577576
578577 current_run_config = self .get_current_run_config ()
579578
580- # If Ring has already been run on that obj and the run config didn't changed then just visualize results
579+ # If Ring has already been run on that obj and the run config didn't change then just visualize results
581580 if obj_name in self .prev_launch_config .keys () and self .prev_launch_config [obj_name ] == current_run_config \
582581 and not self .widg .override_memory .isChecked ():
583582 self .visualize ()
@@ -709,10 +708,10 @@ def visualize(self, selection=None, of_type=None):
709708 stored .chain_resi = set ()
710709 cmd .iterate (obj , 'stored.chain_resi.add((chain, resi))' )
711710 conn_freq = get_freq (stored .model , self .temp_dir .name )
712-
713711 def draw ():
714712 interactions_per_state = pd .read_csv (file_pth , sep = '\t ' )
715713
714+
716715 if len (interactions_per_state ) == 0 :
717716 self .log ("No interactions found in the object" , warning = True )
718717 return
@@ -734,7 +733,8 @@ def draw():
734733 for int_type in intTypeMap .keys ():
735734 interactions_per_type .setdefault (int_type , list ())
736735
737- for (nodeId1 , interaction , nodeId2 , _ , _ , _ , atom1 , atom2 , * _ ) in df .itertuples (index = False ):
736+
737+ for (nodeId1 , interaction , nodeId2 , _ , _ , atom1 , atom2 , * _ ) in df .itertuples (index = False ):
738738 int_type , intRegion = interaction .split (":" )
739739 node1 = Node (nodeId1 )
740740 node2 = Node (nodeId2 )
@@ -773,10 +773,12 @@ def draw():
773773 t += (atom1 ,)
774774 else :
775775 t += ("{}/{}/{}" .format (node1 .chain , str (node1 .resi ), atom1 ),)
776+
776777 if "," in str (atom2 ):
777778 t += (atom2 ,)
778779 else :
779780 t += ("{}/{}/{}" .format (node2 .chain , str (node2 .resi ), atom2 ),)
781+
780782 interactions_per_type [int_type ].append (t )
781783
782784 # Update set of possible selected nodes
0 commit comments