From 1ad6e215f6785f049147519b82c781ea697d698b Mon Sep 17 00:00:00 2001 From: Lubomir Dolezal Date: Thu, 4 Jul 2024 11:08:19 +0200 Subject: [PATCH] comment out garissa --- catalogs/trilateral.yaml | 2 +- generators/generate_indicators.py | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/catalogs/trilateral.yaml b/catalogs/trilateral.yaml index dd41a8e4..2ca4fd3f 100644 --- a/catalogs/trilateral.yaml +++ b/catalogs/trilateral.yaml @@ -118,6 +118,6 @@ collections: # - HLS_NDVI # - LIS_Global_DA_Evap # - 4D_Greenland - - GFC_Garissa_FloodExtent + # - GFC_Garissa_FloodExtent # Garissa does not work now - SEE_solar_energy - crop_forecast_CropOM diff --git a/generators/generate_indicators.py b/generators/generate_indicators.py index c429a4e5..2a1a85e4 100644 --- a/generators/generate_indicators.py +++ b/generators/generate_indicators.py @@ -227,10 +227,7 @@ def process_collection_file(config, file_path, catalog): handle_WMS_endpoint(config, resource, data, catalog, wmts=True) elif resource["Name"] == "Collection-only": handle_collection_only(config, resource, data, catalog) - else: - raise ValueError("Type of Resource is not supported") - else: - if resource["Name"] == "GeoJSON source" or resource["Name"] == "COG source": + elif resource.get("Name") == "GeoJSON source" or resource.get("Name") == "COG source": handle_raw_source(config, resource, data, catalog) else: raise ValueError("Type of Resource is not supported")