From 15bd25f7acf1bf97bffad9144d2c5a6c6dde5239 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Thu, 28 Sep 2023 16:28:09 +0200 Subject: Don't get taxon lists for bird species. We don't show these since 9312e1b3513100c229fc67308bddf9132b284c9e. --- gis-observation-map | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/gis-observation-map b/gis-observation-map index 22dc39e..5821652 100755 --- a/gis-observation-map +++ b/gis-observation-map @@ -598,27 +598,27 @@ def getTaxonLists(): if i not in taxonLists2['Natura2000HabitatsDirectiveArticle2']: raise Exception(f'missing taxon #{i} (in Natura2000HabitatsDirectiveArticle2PrioritySpecie) from Natura2000HabitatsDirectiveArticle2') - i13 = getTaxonList(taxonLists, taxonLists2, 'BirdDirective', 'Birds Directive') - getTaxonList(taxonLists, taxonLists2, 'BirdDirectiveArticle1', 'Birds directive - Annex 1') - getTaxonList(taxonLists, taxonLists2, 'BirdDirectiveArticle2', 'Birds directive - Annex 2') - getTaxonList(taxonLists, taxonLists2, 'TaxonIsPriorityBird', 'Priority birds') - - directives = ['BirdDirectiveArticle1', 'BirdDirectiveArticle2'] - d0 = 'BirdDirective' - #for i in taxonLists2[d0]: - # if not any(map(lambda d: i in taxonLists2[d], directives)): - # raise Exception(f'missing taxon #{i} (in {d0}) from directives {",".join(directives)}') - for d in directives: - for i in taxonLists2[d]: - if i not in taxonLists2[d0]: - raise Exception(f'missing taxon #{i} (in {d}) from {d0}') + #i13 = getTaxonList(taxonLists, taxonLists2, 'BirdDirective', 'Birds Directive') + #getTaxonList(taxonLists, taxonLists2, 'BirdDirectiveArticle1', 'Birds directive - Annex 1') + #getTaxonList(taxonLists, taxonLists2, 'BirdDirectiveArticle2', 'Birds directive - Annex 2') + #getTaxonList(taxonLists, taxonLists2, 'TaxonIsPriorityBird', 'Priority birds') + # + #directives = ['BirdDirectiveArticle1', 'BirdDirectiveArticle2'] + #d0 = 'BirdDirective' + ##for i in taxonLists2[d0]: + ## if not any(map(lambda d: i in taxonLists2[d], directives)): + ## raise Exception(f'missing taxon #{i} (in {d0}) from directives {",".join(directives)}') + #for d in directives: + # for i in taxonLists2[d]: + # if i not in taxonLists2[d0]: + # raise Exception(f'missing taxon #{i} (in {d}) from {d0}') i7 = getTaxonList(taxonLists, taxonLists2, 'TaxonIsRedlisted', 'Redlisted species') taxonRedlistCategories = getTaxonRedlistCategories(taxonLists, i7) i18 = getTaxonList(taxonLists, None, None, 'Swedish forest agency nature conservation species') - taxonListIds = [i1, i2, i7, i8, i13, i18] + taxonListIds = [i1, i2, i7, i8, i18] return taxonLists2, taxonRedlistCategories, taxonListIds def getTaxonList(taxonLists, taxonLists2, key, name): -- cgit v1.2.3