diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-03-04 13:32:36 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-03-04 13:32:36 +0100 |
commit | 9bf7d10f3310147c7e85330a79da655b9f7a5bad (patch) | |
tree | 00283ccf137cd3a87e1d5d08869717a8ffddd4cc /lib/codegen.py | |
parent | f33c69dcaf24ecc7e039dec83a4a5c74908da52f (diff) |
PTA State/Transition: Use ModelFunction instead of PTAAttribute
Diffstat (limited to 'lib/codegen.py')
-rw-r--r-- | lib/codegen.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/codegen.py b/lib/codegen.py index 62776fd..d224a01 100644 --- a/lib/codegen.py +++ b/lib/codegen.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """Code generators for multipass dummy drivers for online model evaluation.""" from .automata import PTA, Transition @@ -227,11 +228,8 @@ class SimulatedStaticAccountingImmediateCalculation(SimulatedAccountingMethod): def sleep(self, duration_us): time = self._sleep_duration(duration_us) - print("sleep duration is {}".format(time)) power = int(self.current_state.power.value) - print("power is {}".format(power)) energy = self._energy_from_power_and_time(time, power) - print("energy is {}".format(energy)) self.energy += energy def pass_transition(self, transition: Transition): |