fix(accel_brake_map_calibrator): fix view_statistics script #3793
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I fixed view_statistics.py script in the accel_brake_map_calibrator package.
After:
Tests performed
Before:
![image](https://private-user-images.githubusercontent.com/59680180/240113398-d773faac-4dbe-48cf-81d4-fc24b47481f7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzOTkwNjMsIm5iZiI6MTczOTM5ODc2MywicGF0aCI6Ii81OTY4MDE4MC8yNDAxMTMzOTgtZDc3M2ZhYWMtNGRiZS00OGNmLTgxZDQtZmMyNGI0NzQ4MWY3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDIyMTkyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTcxNTY1YmYxODE2Yjg5MjkyNWJkMzU5NWYxNGI5NDk5ZTk2ZTRmZmViYjk3YWY4YzhhYTQ2YmU4YjdiYmNlYjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.0WsiIZj-xW5ZQnHC8NR5u-pT_9rbAw3lqjzQgZKLrN8)
The script causes the following error.
After:
![image](https://private-user-images.githubusercontent.com/59680180/240113741-e5437a77-b514-4e9d-9873-2619a36355f9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzOTkwNjMsIm5iZiI6MTczOTM5ODc2MywicGF0aCI6Ii81OTY4MDE4MC8yNDAxMTM3NDEtZTU0MzdhNzctYjUxNC00ZTlkLTk4NzMtMjYxOWEzNjM1NWY5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDIyMTkyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU5ODFmMDlkMzM4ZmMwYTRjYzZlOTE1M2I3ZWQ4YTEwYzBiM2RmNDE0MjFkNzRmMTM5OWU1OGQ2Y2IxOGUyMDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.j7lBqoiJWe2Y4jBqzfhcvFLxFs-_d0PZMHlR9VEBdjE)
The script can output matplot image
Effects on system behavior
It does not affect autonomous driving behavior.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.