Skip to content

Commit 1e3f810

Browse files
authored
Merge pull request #601 from HSLdevcom/fix/park-and-ride-comments
Remove confusing comment about park and ride shop search radius.
2 parents f413252 + 386054f commit 1e3f810

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Scripts/models/park_and_ride_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,15 +240,15 @@ def _get_facility_utilities(self) -> np.ndarray:
240240
return np.array([f.cost * facility_cost_w + f.time * facility_time_w + f.extra_utility for f in self._facilities])[None, None, :]
241241

242242
def _calc_extra_utility(self, impedance: Dict[str, Dict[str, Dict[str, np.ndarray]]]):
243-
"""Calculate extra utility for each facility based on the number of shops within 1 km.
243+
"""Calculate extra utility for each facility based on the number of shops within x km.
244244
Does nothing if there are no facilities or if the extra utility has already been calculated.
245245
246246
Args:
247247
impedance (Dict[str, Dict[str, Dict[str, np.ndarray]]]): Impedance matrices
248248
"""
249249
if len(self._facilities) == 0 or self._facilities[0].extra_utility is not None:
250250
return
251-
SHOP_SEARCH_RADIUS = 3.0 # Include shops within 1 km
251+
SHOP_SEARCH_RADIUS = 3.0 # Include shops within x km
252252
try:
253253
shop_weight = destination_choice[self._purpose.name]['park_and_ride']['utility']['facility']['shops']
254254
except KeyError:

0 commit comments

Comments
 (0)