From 2040a0d0b8684eaeec7a1d81c2ce5f829e043cd6 Mon Sep 17 00:00:00 2001 From: "niehues.mark@gmail.com" <niehues.mark@gmail.com> Date: Fri, 13 Mar 2020 18:28:39 +0100 Subject: [PATCH] wip --- evrouting/charge/T.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evrouting/charge/T.py b/evrouting/charge/T.py index 259aa4b..d65d7bc 100644 --- a/evrouting/charge/T.py +++ b/evrouting/charge/T.py @@ -13,8 +13,8 @@ Label = namedtuple('Label', ['t_trip', 'beta_u', 'u', 'SoCProfile_u_v']) class ChargingFunction: def __init__(self, G: nx.Graph, n: Node, U: SoC): - self.c = charging_cofficient(G, n) - self.U = U + self.c: ChargingCoefficient = charging_cofficient(G, n) + self.U: SoC = U def __call__(self, t: Time, beta: SoC = 0) -> SoC: beta += self.c * t -- GitLab