Justin Newberry
fc9f50c90d
fix logreader after segment_numbers api removal ( #32073 )
...
fix
2024-04-01 10:01:50 -07:00
Adeeb Shihadeh
7cfc571f56
timeless routes ( #31119 )
...
* timeless route
* update sort
* update test
* fix param name
2024-03-05 20:43:33 -08:00
Cameron Clough
995250ae49
use pyupgrade to update to new typing syntax ( #31580 )
...
* add pyupgrade hook
* run pyupgrade (pre-commit run -a)
* ruff --fix
* Revert "add pyupgrade hook"
This reverts commit 56ec18bb6b8602a0b612f3803d96cdad14b52066.
* revert changes to third_party/
* manual type fixes
* explicit Optional wrapping capnp objects
2024-02-24 16:41:23 -08:00
Shane Smiskol
c5f1f4c676
test_fw_query_on_routes: get first qlog ( #31496 )
...
* fast
* this isn't internal
* see
2024-02-16 17:55:15 -08:00
Shane Smiskol
796671fe1a
SegmentRange: more explicit slice matching ( #31451 )
...
* more explicit
* fix it
* use non capturing group
* only needed for regex101
* make test_logreader.py executable
* fix
* stash
* passes test
* none
* type anotate
* test
* fix
* nice for syntax highlighting
2024-02-14 04:36:58 -08:00
Shane Smiskol
8fe9bc7a69
SegmentRange: simplify slice ( #31455 )
...
* simplify slicing
* rm
2024-02-14 04:17:03 -08:00
Shane Smiskol
8276371009
SegmentRange: type annotations ( #31453 )
...
* type annotate SegmentRange
* proper formatting
* oops
* numpy?
format test too
* draft
* fixed
* clean up
* rm
* more
* clean up
* clean up
* rm
* not here
* revert
2024-02-14 02:05:55 -08:00
Shane Smiskol
0846175f44
tools/lib: format code ( #31454 )
...
easier to read. pylint used to catch all this stuff, but it's mostly missing in ruff :'(
2024-02-14 01:56:17 -08:00
Shane Smiskol
884bd5c7f6
SegmentRange: define __repr__
2024-02-13 22:58:44 -08:00
Justin Newberry
d574013d7b
LogReader: don't use route for max_segment ( #31129 )
...
* dont use route
* fix and cleanup
2024-01-23 14:51:45 -08:00
Justin Newberry
35e1e8ecd2
SegmentRange: __str__ get preferred format ( #31126 )
...
get canonical
2024-01-23 11:40:22 -08:00
Justin Newberry
eb09294fc2
segmentrangereader: support direct parsing ( #30973 )
...
* use correct source
* revert
* cleanup imports
* clean
* direct parsing
* rename
* move up
* fixes
* fix that
* better error message
2024-01-11 16:56:48 -08:00
Justin Newberry
fb994ae782
segmentrangereader: support more sources ( #30970 )
...
* support more sources
* remove this
2024-01-11 12:55:19 -08:00
Justin Newberry
be814ed447
SegmentRangeReader: log type selector ( #30960 )
...
* log type selector
* test this too
* and this
* invalid selector
* use strenum
* don't hardcode size
* oneline
2024-01-11 10:25:24 -08:00
Justin Newberry
0d126e1e9e
SegmentRangeReader: new format for reading multiple segments ( #30940 )
...
* segment range reader
* rename that
* revert that
* cleanup
* revert this for now
* revert this for now
* Fix + test
* rm that
* rm that
* use for auto_fingerprint
* simpler
* for notebook too
* match numpy indexing
* just use numpy directly
* remove that
* spacing
* spacing
* use qlog for auto fingerprint
* add 'read mode'
* pass in read mode
* add test for modes
* numpy indexing
* fix that case
* more examples
* fix the notebook
* cleanup the notebook
* cleaner
* fix those
2024-01-10 11:55:19 -08:00
Adeeb Shihadeh
a9626f95b6
add openpilot prefix to imports ( #29498 )
...
* add openpilot prefix to imports
* more
* more
* fix docs
* fix linter
* bump submodules
* fix patched tests
* update dynamic imports
* debug
* Revert "debug"
This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b.
* fix pm test
2023-08-20 20:49:55 -07:00
ntegan1
07f7570840
Tools: allow using plotjuggler on local data ( #24473 )
...
local juggler
2022-05-17 19:50:23 +02:00
ntegan1
bf269bd883
Tools: allow uncompressed logs ( #24471 )
2022-05-09 12:07:19 -07:00
Adeeb Shihadeh
7d7c0ff35f
tools: add bootlog helpers ( #23504 )
...
* tools: add bootlog helpers
* this is nice
* types
2022-01-12 21:37:43 -08:00
Greg Hogan
71132edf17
plotjuggler: support segment names ( #23263 )
...
* plotjuggler: support segment names
* update docs
* generic parser
* convert segment number to int when parsing
* add SegmentName
Co-authored-by: Willem Melching <willem.melching@gmail.com >
2022-01-04 15:55:46 +01:00
Ewout ter Hoeven
332f568a82
Pyupgrade 3.6: Update syntax with Python 3.6+ features ( #23305 )
...
Updated Python code with Python 3.6+ features:
- utf-8 encoding is now the default (PEP 3120)
- Replace list comprehensions by Generator Expressions (PEP 289)
- Replace yield loop by yield from (PEP 380)
- Remove the (object) subclass when defining a class
- Replace the IOError alias by OSError (PEP 3151)
- Define sets with curly braces {} instead of set()
- Remove "r" parameter from open function, which is default
Co-Authored-By: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com >
Co-Authored-By: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com >
Co-authored-by: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com >
Co-authored-by: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com >
2021-12-24 11:18:39 -08:00
Ewout ter Hoeven
55390d273f
Convert format strings strings to f-strings ( #23241 )
...
* Convert all text strings to f-strings
Reformats all the text from the old "%-formatted" and .format(...) format to the newer f-string format, as defined in PEP 498. This requires Python 3.6+.
Flynt 0.69 was used to reformat the strings. 120 f-strings were created in 51 files.
F-strings are in general more readable, concise and performant. See also: https://www.python.org/dev/peps/pep-0498/#rationale
* revert pyextra changes
* revert ublox.py
Co-authored-by: Willem Melching <willem.melching@gmail.com >
2021-12-16 14:58:17 +01:00
Adeeb Shihadeh
ee33f8a8cd
tools/lib/route: expose raw file paths
2021-11-04 20:32:02 -07:00
Adeeb Shihadeh
b6514a5cb3
lib/route: support for e/d cams ( #22529 )
...
* lib/route: support for e/d cams
* comment
2021-10-12 00:34:53 -07:00
Willem Melching
3755081145
add qcamera support to Route ( #20521 )
2021-03-30 11:48:27 +02:00
iejMac
d4feecd803
plotjuggler falling back to qlog ( #20105 )
...
* fallback to qlogs
* minor fixes
* removed extra line
* help on no args
* Update tools/plotjuggler/juggle.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2021-02-17 22:59:31 -08:00
Adeeb
d9bf9f0a40
Enable more flake8 checks ( #1602 )
...
* enable some more flake8 checks
* some more quick ones
* bump opendbc
* e401
* e711 e712
* e115 e116
* e222
* e301
* remove that
* e129
* e701 e702
* e125 e131
* e227
* e306
* e262
* W503
* e713
* e704
* e731
* bump opendbc
* fix some e722
2020-05-30 20:14:58 -07:00
Greg Hogan
f48e39778d
support any number of top level dirs
2020-03-06 17:55:42 -08:00
Andy
c4af05868b
Tools: Storage API ( #1161 )
...
* filereader
* support URLs in filereader, logreader
* unused
* use route files api; add auth file
* Implement browser auth
* Update readme, fix up cache paths
* Add tests, clear token on 401
* Factor out URLFile
* space
2020-02-24 21:24:54 -05:00
George Hotz
29ac3da7b8
merge in tools
2020-01-17 10:07:22 -08:00