From 96b018fb21cff38ec25e3f3ed1eafa1c7848a8c1 Mon Sep 17 00:00:00 2001 From: Gaurav Vaidya Date: Thu, 12 Oct 2023 16:07:08 -0400 Subject: [PATCH] Attempting to fix workaround. --- node_normalizer/normalizer.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/node_normalizer/normalizer.py b/node_normalizer/normalizer.py index 5f2880b..dccf2c7 100644 --- a/node_normalizer/normalizer.py +++ b/node_normalizer/normalizer.py @@ -487,7 +487,7 @@ async def get_eqids_and_types( for index, typ in enumerate(types): if not typ: logging.error(f"No type information found for '{canonical_nonan[index]}' with eqids: {eqids[index]}.") - types_with_ancestors.append(None) + types_with_ancestors.append([None]) else: types_with_ancestors.append(get_ancestors(app, typ)) return eqids, types_with_ancestors @@ -583,10 +583,8 @@ async def get_normalized_nodes( t = [] for other in dereference_others[canonical_id]: - if deref_others_eqs[other]: - e += deref_others_eqs[other] - if deref_others_typ[other]: - t += deref_others_typ[other] + e += deref_others_eqs[other] + t += deref_others_typ[other] final_eqids.append(e) final_types.append(uniquify_list(t))