From 9d9335386bdd0b7e9662e411b63a71465665372c Mon Sep 17 00:00:00 2001 From: lodersky Date: Thu, 18 Apr 2019 09:45:54 +0200 Subject: [PATCH] Fix wrong parenthesis --- urbs/features/transmission.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/urbs/features/transmission.py b/urbs/features/transmission.py index 7faf8270..bcb94156 100644 --- a/urbs/features/transmission.py +++ b/urbs/features/transmission.py @@ -152,15 +152,15 @@ def transmission_balance(m, tm, stf, sit, com): # exports increase balance for stframe, site_in, site_out, transmission, commodity in m.tra_tuples - if (site_in == sit and stframe == stf and commodity) == - com) - + if (site_in == sit and stframe == stf and + commodity == com)) - sum(m.e_tra_out[(tm, stframe, site_in, site_out, transmission, com)] # imports decrease balance for stframe, site_in, site_out, transmission, commodity in m.tra_tuples - if site_out == sit and stframe == stf and - commodity == com)) + if (site_out == sit and stframe == stf and + commodity == com))) # transmission cost function