Spaces:
Paused
Paused
Download src/peri/__init__.py from CGIAR/PERI-AI-dev: direct link, hf CLI and curl.
- Browser
- Download file 2.76 kB
-
https://huggingface.co/spaces/CGIAR/PERI-AI-dev/resolve/main/src/peri/__init__.py
- Command line
-
hf download hf://spaces/CGIAR/PERI-AI-dev/src/peri/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/CGIAR/PERI-AI-dev/resolve/main/src/peri/__init__.py
2.76 kB
| COUNTRIES = ["ethiopia", "kenya", "malawi", | |
| "nigeria", "tanzania", "uganda", "zambia"] | |
| ROOT_CROPS = ["potato", "cassava", "sweet_potato"] | |
| CASH_CROPS = ["coffee", "cocoa", "tea", | |
| "tobacco", "cotton", "sugar"] | |
| HORTICULTURE = ["mango", "avocado", "haricot_vert", "banana", "other"] | |
| CEREALS = ["maize", "rice", "wheat", "teff"] | |
| INVESTMENTS = ["agricultural extension", "agricultural research and development", "biosecurity" | |
| "cooperatives", "credit", "fertilizer", "input subsidies", "irrigation", | |
| "machinery", "market information", "pest surveillance", "roads", | |
| "seeds", "storage facilities", "training", "weather surveillance"] | |
| APPROVED_OPTIONS = { | |
| "countries":COUNTRIES, | |
| "value_chains":{ | |
| "root":ROOT_CROPS, | |
| "cash":CASH_CROPS, | |
| "hort":HORTICULTURE, | |
| "cereal":CEREALS, | |
| "other":["livestock and dairy", "fisheries", "pulses and oilseeds"] | |
| }, | |
| "investments":INVESTMENTS | |
| } | |
| tti_ref = { | |
| "within 1 year":["input subsidies", "machinery", "credit"], | |
| "between 1 to 5 years":["small scale irrigation", "storage facilities", | |
| "roads", "market information", "weather surveillance", | |
| "cooperatives", "training"], | |
| "between 5 to 10 years":["large scale irrigation"], | |
| "10 years or more":["agricultural research and development"], | |
| } | |
| target_ref = { | |
| "private":["fertilizer", "machinery", "credit", "storage facilities"], | |
| "club":["irrigation", "roads", "cooperatives", "storage facilities"], | |
| "quasi public (impure public)":["agricultural extension"], | |
| "public":["agricultural research and development", "pest surveillance", | |
| "biosecurity", "weather surveillance", "market information"], | |
| } | |
| vis_ref = { | |
| "very high":["roads", "irrigation"], | |
| "high":["input subsidies"], | |
| "medium":["agricultural extension", "credit", "training"], | |
| "low":["weather surveillance", "market information"], | |
| "very low":["agricultural research and development"] | |
| } | |
| target_add_ref = { | |
| "private":{ | |
| "rivalrous":"yes", | |
| "excludable":"yes" | |
| }, | |
| "club":{ | |
| "rivalrous":"no", | |
| "excludable":"yes" | |
| }, | |
| "quasi public (impure public)":{ | |
| "rivalrous":"no", | |
| "excludable":"partially" | |
| }, | |
| "public":{ | |
| "rivalrous":"no", | |
| "excludable":"no" | |
| }, | |
| } | |
| vis_add_ref = { | |
| "very high":{ | |
| "desc":"physical infrastructure" | |
| }, | |
| "high":{ | |
| "desc":"tangible inputs delivered to farmers" | |
| }, | |
| "medium":{ | |
| "desc":"services or training" | |
| }, | |
| "low":{ | |
| "desc":"informattional goods" | |
| }, | |
| "very low":{ | |
| "desc":"knowledge generation, institutional change" | |
| }, | |
| } | |