-
Notifications
You must be signed in to change notification settings - Fork 4
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
Op#3648 reduce memory consumption in track parser #554
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add lazy version of track dataset and detection parser
Detection parser can accept a stream of file contents to lazily load files only when they are needed
… made to TrackDataset in subclass
…ode duplication with python track parser make some functionality reusable through classmethod use bzip 2 json stream reader to sort files by start date
renamed BulkPythonDetectionParser back to PythonDetectionParser extracted methods for creating PythonDetections and PythonTracks as static methods on module level
i have some old ottrk files for testing that could no longer be parsed a new metadata format fixer fixes the old date string format by transforming it to timestamp format TODO: review versions of fixer
clean up streaming parser and add more doc strings
found potential memory leak: delete det_list in StreamOttrkParser.parser() OttrkVideoParser crashed in a manual test because the metadata format did not match -> apply format fixer
also reduced code duplication in cli.py and main_application.py also fixed/adapted tests
…b.com/OpenTrafficCam/OTAnalytics into OP#3648-create-streaming-track-parser
fixed test_cli patches
briemla
requested changes
Oct 25, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. As this is a larger PR, I have few questions and comments.
…t is defined by the EventListExporter implementation
…o not yet produce an output file also tested export mode FLUSH, with same behavior as OVERWRITE
…n no more track data is available
…tection parser (similar to test_otvision_parser)
…which expects the file not to exist previously the test case: test_export seems to have created that file/dir
briemla
previously approved these changes
Dec 2, 2024
briemla
approved these changes
Dec 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
OP#3648