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

Add dataset caching for DatabaseULog #91

Merged
merged 4 commits into from
Jan 22, 2024
Merged

Add dataset caching for DatabaseULog #91

merged 4 commits into from
Jan 22, 2024

Conversation

hermankolden
Copy link
Contributor

Fixes #84 , see commit message for details

Add a "caching" flag to get_dataset which allows the user to read from
_data_list instead of always retrieving from database. This solves the
problem "PX4ULog.add_roll_pitch_yaw does not work with DatabaseULog",
and has a small performance bonus on the side.
Useful to run with venvs
When the dataset caching feature was introduced, it was discovered that
one test with multiple datasets of different instance IDs were failing.
Copy link
Member

@bkueng bkueng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@bkueng bkueng merged commit 7819181 into PX4:main Jan 22, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

px4.add_roll_pitch_yaw doesn't work with DatabaseULog.get_dataset
2 participants