Scaffold Tree Error

I wanted to bring to your attention an error I encountered when using the new Scaffold Tree. I am happy to provide more information if that helps debug. I am using Chem Package 1.4.24.

Stacktrace from Console:

Chem:scaffoldTreeViewer()
result: Instance of ‘aOx’
Exception: IndexError: list index out of range
---------------------------------------------------------------------------IndexError Traceback (most recent call last)Cell In[3], line 125
116 return json_list
117 tree = sg.ScaffoldTree.from_dataframe(
118 data,
119 smiles_column=smilesColumn,
(…)
123 discharge_and_deradicalize=dischargeAndDeradicalize,
124 )
–> 125 res = get_json_representation(tree)
126 json_result = json.dumps(res)
127 result = json_result.replace("\n", “\n”)
Cell In[3], line 115, in get_json_representation(tree)
113 json_list = []
114 for scaffold in first_scaffolds:
–> 115 json_list.append(get_tree(tree, scaffold[0]))
116 return json_list
Cell In[3], line 108, in get_tree(tree, scaffold_1)
106 else:
107 parent = parent_lookup(sorted_scaffolds[i], sorted_scaffolds, hierarchies)
–> 108 recurs_append_nodes(‘smiles’, parent, hierarchy_dict, json_list[0])
109 return json_list[0]
Cell In[3], line 30, in recurs_append_nodes(key, value, node, obj)
28 for k, v in obj.items():
29 if type(v) == list:
—> 30 result = recurs_append_nodes(key, value, node, v[0])
Cell In[3], line 30, in recurs_append_nodes(key, value, node, obj)
28 for k, v in obj.items():
29 if type(v) == list:
—> 30 result = recurs_append_nodes(key, value, node, v[0])
[… skipping similar frames: recurs_append_nodes at line 30 (2 times)]
Cell In[3], line 30, in recurs_append_nodes(key, value, node, obj)
28 for k, v in obj.items():
29 if type(v) == list:
—> 30 result = recurs_append_nodes(key, value, node, v[0])
IndexError: list index out of range

Hi Tom, Thank you for the feedback! Looks like there is an issue with Jupitor on your end. We will get in touch with you separately about this dev-op issue.