Skip to content
Snippets Groups Projects
Commit a33efade authored by markn92's avatar markn92
Browse files

minor

parent ae46b243
Branches
No related tags found
No related merge requests found
...@@ -92,13 +92,13 @@ class AccessFunctions: ...@@ -92,13 +92,13 @@ class AccessFunctions:
""" """
def __init__(self, def __init__(self,
distance=distance, get_distance=None,
consumption=consumption, get_consumption=None,
charging_coefficient=charging_cofficient get_charging_coefficient=None
): ):
self._distance = distance self._distance = get_distance or distance
self._consumption = consumption self._consumption = get_consumption or consumption
self._charging_coefficient = charging_coefficient self._charging_coefficient = get_charging_coefficient or charging_cofficient
def distance(self, G, u, v): def distance(self, G, u, v):
return self._distance(G, u, v) return self._distance(G, u, v)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment