Avoid IndexError in max_lat_accel.py due to empty values in dataset (#34926)
* Update max_lat_accel.py The error you're encountering is due to the fact that the code is trying to calculate the 90th percentile of lateral acceleration values that are less than 0, but there are no such values in the dataset. This results in an empty list, which causes the np.percentile function to fail with an IndexError * fix * simpler --------- Co-authored-by: Shane Smiskol <shane@smiskol.com>pull/34894/head
parent
313a3d81e0
commit
5a28b0c9fe
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue