diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2023-09-28 16:28:09 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2023-09-28 16:28:09 +0200 |
commit | 15bd25f7acf1bf97bffad9144d2c5a6c6dde5239 (patch) | |
tree | 25825f957b185b8d95c397625c9c88728746085a | |
parent | 07dcc9b0a39fd7d3550b4a7c96c3a42782742fcf (diff) |
Don't get taxon lists for bird species.
We don't show these since 9312e1b3513100c229fc67308bddf9132b284c9e.
-rwxr-xr-x | gis-observation-map | 30 |
1 files 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): |