Skip to content
Snippets Groups Projects
Commit eb12e5b4 authored by Loraine Gueguen's avatar Loraine Gueguen
Browse files

fix condition in get_unique_species_dict_list()

parent cd192103
No related branches found
No related tags found
2 merge requests!12Release_2.0 next,!9Release 2.0 (merge dev to master)
This commit is part of merge request !12. Comments created here will be created in the context of that merge request.
...@@ -158,7 +158,8 @@ def get_unique_species_dict_list(sp_dict_list): ...@@ -158,7 +158,8 @@ def get_unique_species_dict_list(sp_dict_list):
for sp in sp_dict_list: for sp in sp_dict_list:
gspecies = get_gspecies_string_from_sp_dict(sp) gspecies = get_gspecies_string_from_sp_dict(sp)
if gspecies not in unique_species_dict.keys() or sp[constants.ORG_PARAM_DESC][constants.ORG_PARAM_DESC_MAIN_SPECIES] == True : if gspecies not in unique_species_dict.keys() or ( constants.ORG_PARAM_DESC_MAIN_SPECIES in sp[constants.ORG_PARAM_DESC].keys() and
sp[constants.ORG_PARAM_DESC][constants.ORG_PARAM_DESC_MAIN_SPECIES] == True ) :
unique_species_dict[gspecies] = sp unique_species_dict[gspecies] = sp
else: else:
continue continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment