Add verbose flag to DeepRacerLog init and load methods#73
Merged
Conversation
Co-authored-by: larsll <59617571+larsll@users.noreply.github.com> Agent-Logs-Url: https://github.com/aws-deepracer-community/deepracer-utils/sessions/084d2922-1fbf-4f01-8d5c-439ab6a5a1b1
Copilot
AI
changed the title
[WIP] Add verbose flag to key functions in log.py
Add verbose flag to DeepRacerLog init and load methods
Mar 22, 2026
larsll
approved these changes
Mar 22, 2026
Member
|
@copilot let's simplify it -- just pass verbose on the constructor (init), then store the result for all other function calls. You can then revert changes in many of the function calls. |
Co-authored-by: larsll <59617571+larsll@users.noreply.github.com> Agent-Logs-Url: https://github.com/aws-deepracer-community/deepracer-utils/sessions/7b4896b1-6e97-44c6-bff7-05d73212ec9d
Contributor
Author
Done in commit |
larsll
added a commit
that referenced
this pull request
Mar 22, 2026
* Initial plan * Add verbose flag to DeepRacerLog init and load methods Co-authored-by: larsll <59617571+larsll@users.noreply.github.com> Agent-Logs-Url: https://github.com/aws-deepracer-community/deepracer-utils/sessions/084d2922-1fbf-4f01-8d5c-439ab6a5a1b1 * Simplify verbose: store on __init__, remove from load method signatures Co-authored-by: larsll <59617571+larsll@users.noreply.github.com> Agent-Logs-Url: https://github.com/aws-deepracer-community/deepracer-utils/sessions/7b4896b1-6e97-44c6-bff7-05d73212ec9d --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: larsll <59617571+larsll@users.noreply.github.com>
This file contains hidden or 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
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.
DeepRacerLogprovided no feedback during initialization or log loading, making it hard to confirm what was detected and loaded without inspecting the dataframe manually.Changes
__init__(verbose=False)— storesverboseasself.verbose; prints the folder type selected bydetermine_root_folder_type()whenTrueload_training_trace()— prints step/episode/iteration counts after load usingself.verbose; usesunique_episodefor correct multi-worker countingload_evaluation_trace()— prints step/episode/iteration counts after load usingself.verboseload_robomaker_logs()— prints step/episode/iteration counts after load usingself.verboseload()— delegates to the underlying load method which readsself.verbose_print_load_summary()— private helper extracted to avoid duplication across load methodsThe
verboseflag is set once on the constructor and applies to all subsequent load operations. All existing call sites are unaffected as it defaults toFalse.Example
Original prompt
⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.