From 6fc6fd6d23d22faea2681b5e8e4f1f64f09332ed Mon Sep 17 00:00:00 2001 From: BossyRomain Date: Wed, 27 Aug 2025 10:26:48 +0200 Subject: [PATCH 1/2] (build) Update Appa Run version to 0.3.6 --- pyproject.toml | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a43a0ce..0c03c3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,7 @@ dependencies = [ "kaleido", "tqdm", "ruamel.yaml", - "apparun==0.3.5", + "apparun==0.3.6", "typer==0.15.1", "ipython>=7.6.0,<=8.34.0", "mermaid-py==0.7.1" diff --git a/requirements.txt b/requirements.txt index 0390429..6a58470 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,7 +20,7 @@ aenum kaleido tqdm ruamel.yaml -apparun==0.3.5 +apparun==0.3.6 ipython>=7.6.0,<=8.34.0 pre-commit hatchling From d81c48ccd5e9d4f6ff1adaa631ff7f35ade714a3 Mon Sep 17 00:00:00 2001 From: BossyRomain Date: Wed, 27 Aug 2025 10:59:13 +0200 Subject: [PATCH 2/2] (fix) LCA configuration loading --- appabuild/config/lca.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/appabuild/config/lca.py b/appabuild/config/lca.py index fb95343..3c9a0d3 100644 --- a/appabuild/config/lca.py +++ b/appabuild/config/lca.py @@ -23,6 +23,10 @@ def parse_param(param: dict) -> ImpactModelParam: :param param: dict containing the elements needed to build an ImpactModelParam. :return: constructed ImpactModelParam. """ + if "default" not in param: + raise PydanticCustomError( + "key_error", "Missing field type for a parameter", {"field": "default"} + ) try: return ImpactModelParam.from_dict(param) except KeyError: