From d4dfc94e3fe4bf283b624b42d68f7fd4bfc1e910 Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 10 Nov 2023 16:19:10 +0100 Subject: [PATCH] Fix linting issue (Line too long) (#86) Co-authored-by: Philipp Ross --- src/BenchmarkManager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/BenchmarkManager.py b/src/BenchmarkManager.py index f861e2c1..a2af8c95 100644 --- a/src/BenchmarkManager.py +++ b/src/BenchmarkManager.py @@ -204,7 +204,8 @@ def traverse_config(self, module: dict, input_data: any, path: str, rep_count: i else: processed_input, benchmark_record = self.traverse_config(module["submodule"], - module_instance.preprocessed_input, path, rep_count) + module_instance.preprocessed_input, path, + rep_count) module_instance.postprocessed_input, postprocessing_time = module_instance.postprocess(processed_input, module["config"], store_dir=path, @@ -349,6 +350,7 @@ class NumpyEncoder(json.JSONEncoder): """ Encoder that is used for json.dump(...) since numpy value items in dictionary might cause problems """ + def default(self, o: any): if isinstance(o, np.integer): return int(o)