Skip to content

Commit

Permalink
undo update _adjust_distance
Browse files Browse the repository at this point in the history
  • Loading branch information
Hussein-Mahfouz committed Dec 13, 2024
1 parent a588c67 commit 9fa6b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/acbm/assigning/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def _adjust_distance(
float
The adjusted distance.
"""
return distance * ((1 + (detour_factor - 1)) * np.exp(-decay_rate * distance))
return distance * (1 + ((detour_factor - 1) * np.exp(-decay_rate * distance)))


def zones_to_time_matrix(
Expand Down

0 comments on commit 9fa6b0f

Please sign in to comment.