Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The 'or' needs to be 'and' #37

Open
Marxlp opened this issue Apr 28, 2019 · 0 comments
Open

The 'or' needs to be 'and' #37

Marxlp opened this issue Apr 28, 2019 · 0 comments

Comments

@Marxlp
Copy link

Marxlp commented Apr 28, 2019

elif 't_vehicle_groundtruth_0__f_q_0_' in df or 't_vehicle_local_position_0__f_x' in df:

When use px4tools, I encountered the error shown as below:

'DataFrame' object has no attribute 't_vehicle_groundtruth_0__f_q_0_'

After tracing the error, I found a bug. In my ulog data I have t_vehicle_local_position_0__f_x but no t_vehicle_groundtruth_0__f_q_0_. But the code under the if statement rely on both of them, the code below shouldn't be executed.

@Marxlp Marxlp changed the title The 'or' need to be 'and' The 'or' needs to be 'and' Apr 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant