From 1787927ab9417c20b0d263a40ec59de7d877d882 Mon Sep 17 00:00:00 2001 From: Limber Mamani Date: Fri, 13 Dec 2024 12:21:02 -0400 Subject: [PATCH] update requirements file --- .../GetPolygonsIndicatorAnalysisController.php | 6 +++--- resources/python/polygon-indicator/requirements.txt | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/V2/MonitoredData/GetPolygonsIndicatorAnalysisController.php b/app/Http/Controllers/V2/MonitoredData/GetPolygonsIndicatorAnalysisController.php index d062bf55..85d6ee58 100644 --- a/app/Http/Controllers/V2/MonitoredData/GetPolygonsIndicatorAnalysisController.php +++ b/app/Http/Controllers/V2/MonitoredData/GetPolygonsIndicatorAnalysisController.php @@ -72,12 +72,12 @@ public function __invoke(EntityModel $entity, string $slug) ->first(); $results = [ 'id' => $polygon->id, - 'poly_name' => $polygon->poly_name, + 'poly_name' => $polygon->poly_name ?? '-', 'poly_id' => $polygon->poly_id, 'site_id' => $polygon->site_id, 'status' => $polygon->status, - 'plantstart' => $polygon->plantstart, - 'site_name' => $polygon->site->name ?? '', + 'plantstart' => $polygon->plantstart ?? '-', + 'site_name' => $polygon->site->name ?? '-', 'size' => round($polygon->calc_area ?? 0, 3), 'indicator_slug' => $indicator->indicator_slug, 'year_of_analysis' => $indicator->year_of_analysis, diff --git a/resources/python/polygon-indicator/requirements.txt b/resources/python/polygon-indicator/requirements.txt index 7a495d4d..f816c5b3 100755 --- a/resources/python/polygon-indicator/requirements.txt +++ b/resources/python/polygon-indicator/requirements.txt @@ -1,8 +1,7 @@ shapely==2.0.1 -geopandas==1.0.1 -pandas==2.1.3 +geopandas==1.9.0 +pandas==2.1.2 requests==2.32.3 -yaml==6.0.2 fiona==1.10.1 exactextract==0.2.0 rasterio==1.4.3