Skip to content
Snippets Groups Projects
Commit 8f40a8b3 authored by Lan Dam's avatar Lan Dam
Browse files

fix bug getting wrong index for log_data

parent e4a6feee
No related branches found
No related tags found
1 merge request!165Fix SOH info not show for bottom of Jerk/DPS and display all info lines for the case data point clicked matches more than one SOH lines.
Pipeline #2910 failed with stage
in 2 minutes and 24 seconds
...@@ -345,9 +345,9 @@ class PlottingWidget(QtWidgets.QScrollArea): ...@@ -345,9 +345,9 @@ class PlottingWidget(QtWidgets.QScrollArea):
if len(real_idxes) > 1: if len(real_idxes) > 1:
info_str = info_str.replace( info_str = info_str.replace(
"</pre>", f" ({len(real_idxes)} lines)") "</pre>", f" ({len(real_idxes)} lines)")
for idx in real_idxes: for idx in log_idxes:
info_str += ( info_str += (
"<pre> " + self.log_data[log_idxes[idx]] + "</pre>") "<pre> " + self.log_data[idx] + "</pre>")
display_tracking_info(self.tracking_box, info_str) display_tracking_info(self.tracking_box, info_str)
if 'logIdx' in chan_data.keys(): if 'logIdx' in chan_data.keys():
# For Reftek, need to hightlight the corresponding # For Reftek, need to hightlight the corresponding
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment