From b1fb37d28711218c710b5cba81d33d6c3d162280 Mon Sep 17 00:00:00 2001 From: dcradu <dcradu@uliege.be> Date: Sun, 28 Feb 2021 13:30:08 +0100 Subject: [PATCH] added onshore/offshore tech attribute (part II) --- src/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools.py b/src/tools.py index 32a573e..de30e09 100644 --- a/src/tools.py +++ b/src/tools.py @@ -345,7 +345,7 @@ def return_filtered_coordinates(dataset, model_params, tech_params): unique_list_of_points = [] for region in regions: - shape_region = union_regions([region], model_params['data_path'], which='both') + shape_region = union_regions([region], model_params['data_path'], which=tech_dict['where']) points_in_region = return_coordinates_from_shapefiles(dataset, shape_region) points_to_keep = list(set(coordinates_dict[tech]).intersection(set(points_in_region))) -- GitLab