better label parsing
@@ -331,9 +331,11 @@ class KgtkVisualize:
temp['fy'] = float(row[kr_node.column_name_map['y']])
if 'label' in kr_node.column_name_map:
+ try:
+ _node_label, _, _ = kgtk_format.destringify(row[kr_node.column_name_map['label']])
+ except Exception as e:
+ print(e, file=self.error_file)
_node_label = row[kr_node.column_name_map['label']]
- if '@' in _node_label:
- _node_label, _, _ = kgtk_format.destringify(_node_label)
if _node_label != "" or self.show_blank_labels:
temp['label'] = _node_label
