Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions escenario_el_nino.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ def _banda(d):
band = d["banda_nacional"]
ref = _ref(d)
html = '<div class="esc-block">'
if "central" in band:
html += _bar("Central (año típico)", band["central"]["monto_S1000"], ref, "#9cc",
band["central"].get("desc", ""))
html += _bar(f"Peor año real ({band['peor_ano_real']['campana']})",
band["peor_ano_real"]["monto_S1000"], ref, GRIS)
html += _bar("Ancla (peor año × depto)", band["ancla"]["monto_S1000"], ref, "#5a9")
Expand Down
5 changes: 5 additions & 0 deletions static_data/escenario_el_nino.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
"suma_aseg_ha": 1000.0
},
"banda_nacional": {
"central": {
"ha": 49994,
"monto_S1000": 49993968,
"desc": "media anual de 4 campañas"
},
"peor_ano_real": {
"campana": "2024-2025",
"ha": 63498,
Expand Down
Loading