From 1fcfb5fd103c39159b6625feda972bdb6f669cf9 Mon Sep 17 00:00:00 2001 From: owidbot Date: Tue, 10 Dec 2024 13:50:43 +0000 Subject: [PATCH] wip --- .../data/grapher/tuberculosis/2023-11-27/outcomes_disagg.py | 2 +- lib/catalog/owid/catalog/yaml_metadata.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etl/steps/data/grapher/tuberculosis/2023-11-27/outcomes_disagg.py b/etl/steps/data/grapher/tuberculosis/2023-11-27/outcomes_disagg.py index f3720a709117..5354b6b1a294 100644 --- a/etl/steps/data/grapher/tuberculosis/2023-11-27/outcomes_disagg.py +++ b/etl/steps/data/grapher/tuberculosis/2023-11-27/outcomes_disagg.py @@ -20,7 +20,7 @@ def run(dest_dir: str) -> None: # # Create a new grapher dataset with the same metadata as the garden dataset. ds_grapher = create_dataset( - dest_dir, tables=[tb], check_variables_metadata=True, default_metadata=ds_garden.metadata + dest_dir, tables=[tb], check_variables_metadata=True, default_metadata=ds_garden.metadata, long_to_wide=False ) # Save changes in the new grapher dataset. diff --git a/lib/catalog/owid/catalog/yaml_metadata.py b/lib/catalog/owid/catalog/yaml_metadata.py index 93bcefe15be0..311d3ff44a6c 100644 --- a/lib/catalog/owid/catalog/yaml_metadata.py +++ b/lib/catalog/owid/catalog/yaml_metadata.py @@ -40,7 +40,7 @@ def update_metadata_from_yaml( tb.metadata.short_name = table_name - t_annot = annot["tables"][table_name] + t_annot = annot.get("tables", {}).get(table_name, {}) # validation if extra_variables == "raise":