From 59d3fba03d83a7982ac5edf10579bfdc40fafdd4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 3 Jul 2020 12:27:08 +0200 Subject: blacken more code --- bin/analyze-archive.py | 10 ++++------ bin/analyze-timing.py | 4 +--- test/test_timingharness.py | 28 +++++++--------------------- 3 files changed, 12 insertions(+), 30 deletions(-) diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py index e23fb9e..9a95c0b 100755 --- a/bin/analyze-archive.py +++ b/bin/analyze-archive.py @@ -645,13 +645,13 @@ if __name__ == "__main__": if param_info(state, attribute): print( "{:10s}: {}".format( - state, param_info(state, attribute)["function"].model_function + state, + param_info(state, attribute)["function"].model_function, ) ) print( "{:10s} {}".format( - "", - param_info(state, attribute)["function"].model_args, + "", param_info(state, attribute)["function"].model_args, ) ) for trans in model.transitions(): @@ -666,9 +666,7 @@ if __name__ == "__main__": ) print( "{:10s} {:10s} {}".format( - "", - "", - param_info(trans, attribute)["function"].model_args, + "", "", param_info(trans, attribute)["function"].model_args, ) ) diff --git a/bin/analyze-timing.py b/bin/analyze-timing.py index 924388d..0747ed8 100755 --- a/bin/analyze-timing.py +++ b/bin/analyze-timing.py @@ -428,9 +428,7 @@ if __name__ == "__main__": ) print( "{:10s} {:10s} {}".format( - "", - "", - param_info(trans, attribute)["function"].model_args, + "", "", param_info(trans, attribute)["function"].model_args, ) ) diff --git a/test/test_timingharness.py b/test/test_timingharness.py index 13289ea..61cdf4b 100755 --- a/test/test_timingharness.py +++ b/test/test_timingharness.py @@ -35,14 +35,10 @@ class TestModels(unittest.TestCase): ) self.assertAlmostEqual( - param_info("write", "duration")["function"].model_args[0], - 1163, - places=0, + param_info("write", "duration")["function"].model_args[0], 1163, places=0, ) self.assertAlmostEqual( - param_info("write", "duration")["function"].model_args[1], - 464, - places=0, + param_info("write", "duration")["function"].model_args[1], 464, places=0, ) self.assertAlmostEqual( param_info("write", "duration")["function"].model_args[2], 1, places=0 @@ -85,14 +81,10 @@ class TestModels(unittest.TestCase): ) self.assertAlmostEqual( - param_info("write", "duration")["function"].model_args[0], - 1163, - places=0, + param_info("write", "duration")["function"].model_args[0], 1163, places=0, ) self.assertAlmostEqual( - param_info("write", "duration")["function"].model_args[1], - 464, - places=0, + param_info("write", "duration")["function"].model_args[1], 464, places=0, ) self.assertAlmostEqual( param_info("write", "duration")["function"].model_args[2], 1, places=0 @@ -144,14 +136,10 @@ class TestModels(unittest.TestCase): ) self.assertAlmostEqual( - param_info("write", "duration")["function"].model_args[0], - 1162, - places=0, + param_info("write", "duration")["function"].model_args[0], 1162, places=0, ) self.assertAlmostEqual( - param_info("write", "duration")["function"].model_args[1], - 464, - places=0, + param_info("write", "duration")["function"].model_args[1], 464, places=0, ) self.assertAlmostEqual( param_info("write", "duration")["function"].model_args[2], 1, places=0 @@ -160,9 +148,7 @@ class TestModels(unittest.TestCase): param_info("write", "duration")["function"].model_args[3], 1, places=0 ) self.assertAlmostEqual( - param_info("write", "duration")["function"].model_args[4], - 1086, - places=0, + param_info("write", "duration")["function"].model_args[4], 1086, places=0, ) -- cgit v1.2.3