Skip to content

DFReader: change to python3 only#1003

Merged
tridge merged 4 commits intoArduPilot:masterfrom
tridge:pr-py3-only
Jan 29, 2025
Merged

DFReader: change to python3 only#1003
tridge merged 4 commits intoArduPilot:masterfrom
tridge:pr-py3-only

Conversation

@tridge
Copy link
Contributor

@tridge tridge commented Jan 28, 2025

I think we can drop py2 support now
overall performance improvement of about 30% in loading a bin log

for release, we should make it 2.5.0

this makes the parser about 17% faster in loading a bin log
@tridge tridge requested a review from peterbarker January 28, 2025 21:30
Copy link
Contributor

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +1092 to +1094
offsets = []
counts = []
formats = self.formats
Copy link
Contributor

Choose a reason for hiding this comment

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

This would not seem to be related to the PR title?

I mean, probably not a bad change, but...

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
Copy link
Contributor

Choose a reason for hiding this comment

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

So this doesn't reeally accomplish much, as DFReader is usually called from mavlogdump.py via mavutil.py.

We should probably change mavlogdump.py's shebang line as part of this PR.

@tridge
Copy link
Contributor Author

tridge commented Jan 29, 2025

@peterbarker added change to py3 shebang for a tools/examples/modules

@peterbarker
Copy link
Contributor

@peterbarker added change to py3 shebang for a tools/examples/modules

Nothing exceeds like excess :-)

@tridge tridge merged commit 1a62852 into ArduPilot:master Jan 29, 2025
14 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.

2 participants