summaryrefslogtreecommitdiff
path: root/lib/codegen.py
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-02-21 15:21:49 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-02-21 15:21:49 +0100
commit0ce9577754bc3e39a47be6fec50f6cc1d255dd5e (patch)
tree60a85c7fe19444197cae06d307d51de252c4e253 /lib/codegen.py
parente7ee25bfc59495e076265577638b8f58733f8912 (diff)
black(1)
Diffstat (limited to 'lib/codegen.py')
-rw-r--r--lib/codegen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/codegen.py b/lib/codegen.py
index 5aba3a3..dec12c9 100644
--- a/lib/codegen.py
+++ b/lib/codegen.py
@@ -154,7 +154,8 @@ class SimulatedAccountingMethod:
"""
Return energy (=power * time), accounting for configured granularity.
- Does not use Module types and therefore does not consider overflows or data-type limitations"""
+ Does not use Module types and therefore does not consider overflows or data-type limitations
+ """
if self.energy_granularity == self.power_granularity * self.ts_granularity:
return power * time
return int(
@@ -632,7 +633,6 @@ class MultipassDriver:
)
for transition in self.pta.get_unique_transitions():
-
if transition.name == "getEnergy":
continue