Skip to content

Commit 4287f37

Browse files
committed
fixx abbr[-1]
1 parent 45d81a2 commit 4287f37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

curationTool/reactions/utils/gen_vmh_abbrs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def gen_metabolite_abbr(
6969
result = matlab_session.execute('generateVMHMetAbbr', metabolite_name)
7070
print(f"[DEBUG gen_vmh_abbrs] MATLAB result: {result}", flush=True)
7171
abbr = result['result'] if result['status'] == 'success' else metabolite_name
72-
# abbr = abbr[-1] if isinstance(abbr, list) else abbr
72+
abbr = abbr[-1] if isinstance(abbr, list) else abbr
7373
exists = check_met_abbr_exists(abbr)
7474
while exists:
7575
abbr = abbr + '_'

0 commit comments

Comments
 (0)