From d2b71d97d29e7acf61d9df76cf606466c56194da Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Sat, 3 Aug 2019 01:27:21 +0300 Subject: [PATCH] Minor style fixes --- gui/builtinGraphs/fitCapRegen/getter.py | 4 ++-- gui/builtinGraphs/fitShieldRegen/getter.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gui/builtinGraphs/fitCapRegen/getter.py b/gui/builtinGraphs/fitCapRegen/getter.py index b3f242479..53852d2fc 100644 --- a/gui/builtinGraphs/fitCapRegen/getter.py +++ b/gui/builtinGraphs/fitCapRegen/getter.py @@ -48,14 +48,14 @@ class Time2CapRegenGetter(SmoothPointGetter): def _calculatePoint(self, x, miscParams, fit, tgt, commonData): time = x - currentCapAmount = calculateCapAmount( + capAmount = calculateCapAmount( maxCapAmount=commonData['maxCapAmount'], capRegenTime=commonData['capRegenTime'], time=time) capRegen = calculateCapRegen( maxCapAmount=commonData['maxCapAmount'], capRegenTime=commonData['capRegenTime'], - currentCapAmount=currentCapAmount) + currentCapAmount=capAmount) return capRegen diff --git a/gui/builtinGraphs/fitShieldRegen/getter.py b/gui/builtinGraphs/fitShieldRegen/getter.py index da347492b..395ac7ba4 100644 --- a/gui/builtinGraphs/fitShieldRegen/getter.py +++ b/gui/builtinGraphs/fitShieldRegen/getter.py @@ -48,14 +48,14 @@ class Time2ShieldRegenGetter(SmoothPointGetter): def _calculatePoint(self, x, miscParams, fit, tgt, commonData): time = x - currentShieldAmount = calculateShieldAmount( + shieldAmount = calculateShieldAmount( maxShieldAmount=commonData['maxShieldAmount'], shieldRegenTime=commonData['shieldRegenTime'], time=time) shieldRegen = calculateShieldRegen( maxShieldAmount=commonData['maxShieldAmount'], shieldRegenTime=commonData['shieldRegenTime'], - currentShieldAmount=currentShieldAmount) + currentShieldAmount=shieldAmount) return shieldRegen