Commit a43601cf by Celine Mercier

obitaxonomy: fixed a bug when trying to add a new species by name

parent 0cd2814f
......@@ -331,7 +331,7 @@ if __name__ == '__main__':
for t in options.newspecies:
genus,species = t.split(" ",1)
parent = options.taxonomy.findTaxonByName(genus)
parent = options.taxonomy.findTaxonByName(genus)[0]
taxid = options.taxonomy.addLocalTaxon(t,'species',parent[0],options.taxashift)
taxon = options.taxonomy.findTaxonByTaxid(taxid)
parent= options.taxonomy._taxonomy[taxon[2]]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment