Skip to content

Commit 49d853c

Browse files
authored
fix(accel_brake_map_calibrator): fix view_statistics script (#3793)
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
1 parent 6b1370b commit 49d853c

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

vehicle/accel_brake_map_calibrator/accel_brake_map_calibrator/scripts/calc_utils.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,15 @@ def lowpass_filter_scipy(x, sample_rate, fp, fs, g_pass, g_stop):
6969

7070
@staticmethod
7171
def create_2d_map(
72-
x, y, data, color_factor, x_index_list, x_thresh, y_index_list, y_thresh, calibration_method
72+
x,
73+
y,
74+
data,
75+
color_factor,
76+
x_index_list,
77+
x_thresh,
78+
y_index_list,
79+
y_thresh,
80+
calibration_method="four_cell",
7381
):
7482
if x.shape != y.shape or y.shape != data.shape:
7583
print("Error: the shape of x, y, data must be same")

vehicle/accel_brake_map_calibrator/accel_brake_map_calibrator/scripts/plotter.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ def __init__(self, total_height, total_width, plot=True):
2828
plt.subplots_adjust(left=0.04, right=0.98, bottom=0.05, top=0.95, wspace=0.1, hspace=0.4)
2929

3030
def subplot(self, plot_num):
31-
subplot_str = str(self.total_height) + str(self.total_width) + str(plot_num)
32-
fig = plt.subplot(subplot_str)
31+
fig = plt.subplot(self.total_height, self.total_width, plot_num)
3332
return fig
3433

3534
def subplot_more(self, plot_num):

0 commit comments

Comments
 (0)