From 98fa1f612ac9298364f79faec31e2555e51f7d49 Mon Sep 17 00:00:00 2001 From: James Gaboardi Date: Sun, 3 Dec 2023 17:17:53 -0500 Subject: [PATCH] prepend cap label to model name --- spopt/locate/coverage.py | 2 +- spopt/locate/p_median.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spopt/locate/coverage.py b/spopt/locate/coverage.py index b7715aa7..10169cbc 100644 --- a/spopt/locate/coverage.py +++ b/spopt/locate/coverage.py @@ -454,7 +454,7 @@ def from_geodataframe( predefined_facilities_arr, demand_quantity_arr, facility_capacity_arr, - name, + name=("capacitated-" + name if facility_capacity_col is not None else name), ) def facility_client_array(self) -> None: diff --git a/spopt/locate/p_median.py b/spopt/locate/p_median.py index 8ab4eeb6..e3097ecf 100644 --- a/spopt/locate/p_median.py +++ b/spopt/locate/p_median.py @@ -481,7 +481,7 @@ def from_geodataframe( predefined_facilities_arr=predefined_facilities_arr, facility_capacities=facility_capacities, fulfill_predefined_fac=fulfill_predefined_fac, - name=("capacitated" + name if facility_capacities is not None else name), + name=("capacitated-" + name if facility_capacities is not None else name), ) def facility_client_array(self) -> None: @@ -985,7 +985,7 @@ def from_geodataframe( p_facilities, facility_capacities, distance_metric, - name, + name=("capacitated-" + name if facility_capacities is not None else name), ) def facility_client_array(self) -> None: