diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-07-03 12:27:08 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-07-03 12:27:08 +0200 |
commit | 59d3fba03d83a7982ac5edf10579bfdc40fafdd4 (patch) | |
tree | 9df012b49765b6e1f6714ce624ee0a5616685070 | |
parent | adaa03cf0247b065e6b3863cf16ad88ee24f5169 (diff) |
blacken more code
-rwxr-xr-x | bin/analyze-archive.py | 10 | ||||
-rwxr-xr-x | bin/analyze-timing.py | 4 | ||||
-rwxr-xr-x | 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, ) |