Closed aineniamh closed 3 years ago
---------------------------------------------------------------------------KeyError Traceback (most recent call last)<ipython-input-1-a4371e5355ae> in <module> ----> 1 too_tall_trees, overall_tree_number, colour_dict_dict, overall_df_dict, tree_order, too_large_tree_dict, tallest_height,tree_to_num_tips = tree_viz.make_all_of_the_trees(treedir, tree_name_stem, full_tax_dict, query_dict, tree_fields, label_fields, colour_by, tree_to_all_tip, tree_to_tip, inserted_node_dict, svg_figdir, safety_level=safety_level) ~/.conda/envs/civet/lib/python3.6/site- packages/reportfunk/funks/tree_functions.py in make_all_of_the_trees(input_dir, tree_name_stem, taxon_dict, query_dict, desired_fields, custom_tip_labels, graphic_dict, tree_to_all_tip, tree_to_querys, inserted_node_dict, svg_figdir, safety_level, min_uk_taxa) 390 too_tall_trees.append(treename) 391 tips = tree_to_all_tip[treename] --> 392 too_large_tree_dict = summarise_large_tree(tips, treename, query_dict, taxon_dict, too_large_tree_dict, tree_to_querys) 393 394 return too_tall_trees, overall_tree_count, colour_dict_dict, overall_df_dict, tree_order, too_large_tree_dict, tallest_height, tree_to_num_tips ~/.conda/envs/civet/lib/python3.6/site- packages/reportfunk/funks/tree_functions.py in summarise_large_tree(tips, treename, query_dict, full_tax_dict, df_dict, tree_to_querys) 414 # queries.append(tip) 415 --> 416 tax_obj = full_tax_dict[tip] 417 418 if tax_obj.country != "NA": KeyError: 'Spain/AS-IBV-98006627/2020'