From 56ba7f90dc52db163bcfb9c0c4cf626c002e5134 Mon Sep 17 00:00:00 2001 From: Kosuke Takeuchi Date: Tue, 20 Aug 2024 00:10:26 +0900 Subject: [PATCH] refactor(autowre_accel_brake_map_calibrator): fix for flake-ros v0.9.0 (#8529) Signed-off-by: kosuke55 --- .../autoware_accel_brake_map_calibrator/scripts/calc_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vehicle/autoware_accel_brake_map_calibrator/scripts/calc_utils.py b/vehicle/autoware_accel_brake_map_calibrator/scripts/calc_utils.py index f4581699369a1..dbb70a92d3b09 100755 --- a/vehicle/autoware_accel_brake_map_calibrator/scripts/calc_utils.py +++ b/vehicle/autoware_accel_brake_map_calibrator/scripts/calc_utils.py @@ -37,7 +37,7 @@ def get_map_list(y_num, x_num): class CalcUtils: @staticmethod def average_filter(data, average_num): - if type(average_num) != int: + if not isinstance(average_num, int): print( "Error in average_filter(data, average_num):\ Type of average_num must be int"