Skip to content

Conversation

@lordphone
Copy link
Contributor

Problem

Some paths in example notebooks and the README have been incorrect since this commit that restructures util folders: f304c57

Workflow test fails due to Python 3.7 EOL on github.

Solution

This PR updates:

  1. position_benchmark notebook now looks at the correct folder "utils" instead of the non-existent "notebooks/lib" folder for utils.
  2. Updated position_benchmark and raw_readers notebook to use relative paths for tools/utils to: be consistent with the processed_reader notebook, and remove the need to manually add paths into PYTHONPATH with export commands.
  3. Updates the README to reflect these changes.
  4. Changed workflow main.yml python 3.7 instances to 3.8.

Testing

I believe all three notebooks can run correctly now, without much intervention.
Workflow test passes.

Additional Notes

No functional code was changed.

This is my first time trying to contribute to open source code, so please, if an mistake is made, point me to the right direction and I'll learn from it, thank you!

Updated the correct folder path for position_benchmark notebook, added path to openpilot folder for raw_readers notebook.
Now, all three notebooks handle PYTHONPATH the same way as the processed_readers notebook originally does, and theres no need for manually adding paths to utilities to PYTHONPATH with export command.
Updated README to reflect this change.
@haraschax haraschax merged commit 4c7f1a6 into commaai:master Jul 20, 2025
1 check 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