diff options
author | Lennart <lekaiser@uos.de> | 2020-09-07 18:30:53 +0200 |
---|---|---|
committer | Lennart <lekaiser@uos.de> | 2020-09-07 18:30:53 +0200 |
commit | b55d5aabeeca7020bbcad34925592ed0eee88d3c (patch) | |
tree | caafe40370513ce0387908ca7953016c0da206e9 /lib/harness.py | |
parent | ae154071f9da8105bfa0ca9c20948d471d38e8cd (diff) |
Changed sync Slightly & Black
Diffstat (limited to 'lib/harness.py')
-rw-r--r-- | lib/harness.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/harness.py b/lib/harness.py index 833807e..f0f2837 100644 --- a/lib/harness.py +++ b/lib/harness.py @@ -141,9 +141,7 @@ class TransitionHarness: def start_trace(self): """Prepare a new trace/run in the internal `.traces` structure.""" - self.traces.append( - {"id": self.trace_id, "trace": list(),} - ) + self.traces.append({"id": self.trace_id, "trace": list()}) self.trace_id += 1 def append_state(self, state_name, param): @@ -154,7 +152,7 @@ class TransitionHarness: :param param: parameter dict """ self.traces[-1]["trace"].append( - {"name": state_name, "isa": "state", "parameter": param,} + {"name": state_name, "isa": "state", "parameter": param} ) def append_transition(self, transition_name, param, args=[]): @@ -405,7 +403,7 @@ class OnboardTimerHarness(TransitionHarness): ret = "#define PTALOG_TIMING\n" ret += super().global_code() if self.energytrace_sync == "led": - #TODO Make nicer + # TODO Make nicer ret += """\nvoid runLASync(){ // ======================= LED SYNC ================================ ptalog.passTransition(0); @@ -424,7 +422,7 @@ class OnboardTimerHarness(TransitionHarness): gpio.led_toggle(1); ptalog.stopTransition(); // ======================= LED SYNC ================================ - arch.sleep_ms(250); + //arch.sleep_ms(250); }\n\n""" return ret |