We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68b7619 commit ce34671Copy full SHA for ce34671
1 file changed
src/messes/convert/mwtab_functions.py
@@ -43,7 +43,8 @@ def create_sample_lineages(input_json: dict, entity_table_name: str="entity", pa
43
parents = next_parents
44
next_parents = []
45
for parent_name in parents:
46
- ancestors.append(parent_name)
+ if parent_name not in ancestors:
47
+ ancestors.append(parent_name)
48
if parent_name not in input_json[entity_table_name]:
49
print("Error: The parent entity, \"" + parent_name + "\", pulled from the entity \"" + entity_name + \
50
"\" in the \"" + entity_table_name + "\" table is not in the \"" + entity_table_name + "\" table. " +\
0 commit comments