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

Support writing DatabaseULog to file #98

Merged
merged 5 commits into from
Jul 4, 2024
Merged

Conversation

hermankolden
Copy link
Contributor

@hermankolden hermankolden commented Jun 29, 2024

Calling DatabaseULog.write_ulog didn't work before, now it does.

I guess the comparison commit isn't directly related to DatabaseULog writing, but I included it since it made the write_ulog tests a little more understandable.

I noticed some indexes in the DB were missing from a previous migration so I added them too

Previously we couldn't use == to compare ulogs, so we had to do __dict__
comparison manually in tests. We should just add such comparison as
default, since two ULog objects that have the same data should be
considered equal.
Writing DatabaseULog to file doesn't work, so we add a test which finds
errors we can fix.
If DatabaseULog is lazy loaded it doesn't have data, so it will fail if
trying to write to file.
DatabaseULog.write_ulog complained about wrong value types during struct
packing.
There were lost in pyulog.2.sql, so the DB is very slow for large
databases.

NB: Applying this migration will take a while for large databases.
@bkueng bkueng merged commit 0607f86 into PX4:main Jul 4, 2024
4 checks passed
@hermankolden hermankolden deleted the dbulog-writing branch July 4, 2024 07:39
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.

2 participants