flower-classifier-test / california_flowers.py
Ely-testa's picture
Create california_flowers.py
9772b00 verified
flowers_endangerment = {
"Blazing Star": "Not considered endangered.",
"Bristlecone Pine": "Least Concern (stable population).",
"California Bluebell": "Not listed as endangered or threatened.",
"California Buckeye": "Not endangered.",
"California Buckwheat": "Generally secure.",
"California Fuchsia": "Not endangered overall; some subspecies at risk.",
"California Checkerbloom": "Not generally endangered; some subspecies critically imperiled.",
"California Lilac": "Most species not endangered; some species are endangered.",
"California Poppy": "Generally secure; some subspecies face threats.",
"California Sagebrush": "Considered secure (G4-G5).",
"California Wild Grape": "Apparently secure (G4).",
"California Wild Rose": "Secure (G4).",
"Coyote Mint": "Varies by species; some federally listed as endangered.",
"Elegant Clarkia": "Secure (G5).",
"Baby Blue Eyes": "Secure.",
"Hummingbird Sage": "Apparently secure (G4).",
"Delphinium": "Varies by species; some are endangered.",
"Matilija Poppy": "Not currently endangered.",
"Blue-Eyed Grass": "Not endangered.",
"Penstemon Spectabilis": "Not endangered.",
"Seaside Daisy": "Not endangered.",
"Sticky Monkeyflower": "Not endangered.",
"Tidy Tips": "Generally not endangered; some subspecies may be at risk.",
"Wild Cucumber": "Generally not endangered.",
"Douglas Iris": "Not endangered.",
"Goldfields Coreopsis": "Varies by species; many not endangered."
}
def get_status(flower_name):
"""Return the endangerment status of a given flower name."""
return flowers_endangerment.get(flower_name, "Flower not found in database.")