All application data is persisted locally in a single file calledDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/davi-huanuco/python-matriz-correlacion/llms.txt
Use this file to discover all available pages before exploring further.
datos.json. The application reads this file on startup, normalizes its contents, and writes back to it on every change. There is no database or remote storage — datos.json is the single source of truth.
JSON schema
The top-level object has four keys.Ordered list of month names (e.g.
"Enero", "Febrero"). All indicators share this same list of months. Adding or removing a month via the UI triggers sincronizar_meses_en_indicadores to keep indicator value maps in sync.Map of indicator code strings to indicator objects. Each key is a short code such as
"IND001".List of PDCA simulation records associated with indicators.
List of benchmark records that compare indicator averages against reference values.
Real data example
The following is the actual contents ofdatos.json from the repository:
Functions
cargar_datos
datos.json from disk and returns a fully normalized data dictionary. If the file does not exist, returns an empty structure with all four top-level keys initialized to their zero values. After loading, calls normalizar_indicadores, normalizar_simulaciones, and normalizar_benchmarks to ensure every record has the expected shape.
guardar_datos
datos.json using UTF-8 encoding with a 2-space indent. Overwrites the file on every call.
The full application data dictionary to persist.
sincronizar_meses_en_indicadores
valores map in sync with the global meses list. For each indicator it adds any month in meses that is missing from valores (defaulting to null), and removes any month in valores that is no longer in meses. Modifies datos in place.
The full application data dictionary. Modified in place.
normalizar_numero
float, accepting either a comma or a period as the decimal separator. Raises ValueError if valor cannot be parsed after replacement.
Numeric string, optionally using
"," as the decimal separator (e.g. "3,14" or "3.14").normalizar_indicadores
{"nombre": str, "valores": dict}. Entries that already have nombre and valores keys are passed through with whitespace stripped. Entries in legacy formats (where the key is the name rather than a code) are converted and assigned an auto-generated code such as IND001.
Raw indicator map from
datos.json. May be in legacy or canonical format.normalizar_simulaciones
"Pendiente" for estado. Non-dict entries are skipped.
Raw list of simulation records from
datos.json.normalizar_benchmarks
valor_referencia defaults to null; missing criterio defaults to "Mayor es mejor". Non-dict entries are skipped.
Raw list of benchmark records from
datos.json.siguiente_id_benchmark
id across all benchmarks and adding 1. Returns 1 when there are no existing benchmarks.
The full application data dictionary.