-
Notifications
You must be signed in to change notification settings - Fork 557
Modify the PyROS Logging System #3732
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
base: main
Are you sure you want to change the base?
Modify the PyROS Logging System #3732
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3732 +/- ##
==========================================
+ Coverage 89.31% 89.33% +0.02%
==========================================
Files 896 896
Lines 103697 103774 +77
==========================================
+ Hits 92619 92709 +90
+ Misses 11078 11065 -13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
* **Preprocessing information** (lines 35--37): | ||
Wall time required for preprocessing | ||
the deterministic model and associated components, | ||
i.e., standardizing model components and adding the decision rule |
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.
i.e., standardizing model components and adding the decision rule | |
e.g., standardizing model components and adding the decision rule |
I think you mean e.g. ("such as") here? (It's possible I am reading it incorrectly, though)
# for some fields, we choose floats with more than four | ||
# four decimal points to ensure rounding also matches |
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.
# for some fields, we choose floats with more than four | |
# four decimal points to ensure rounding also matches | |
# for some fields, we choose floats with more than four | |
# decimal points to ensure rounding also matches |
# for some fields, we choose floats with more than four | ||
# four decimal points to ensure rounding also matches |
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.
# for some fields, we choose floats with more than four | |
# four decimal points to ensure rounding also matches | |
# for some fields, we choose floats with more than four | |
# decimal points to ensure rounding also matches |
Test method for logging config user values logs | ||
nothing if all values are set to default. |
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.
The grammar here is weird enough that I'm not actually sure what the sentence is supposed to mean.
# note: first clause of logical expression | ||
# accounts for bug(?) causing an iterate | ||
# of user_values to be the config dict itself |
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.
Is this related to #3721? If so, it might be worthwhile to put that issue number in here so people can go read more about it.
Summary/Motivation:
This PR modifies the PyROS solver output logging system so that the output shown by the default logger (or any other
INFO
-level logger) is simplified.Changes proposed in this PR:
DEBUG
, rather thanINFO
level: (i) full PyROS solver config, (ii) backup solver invocations, (iii) subproblem solve failures for the master feasibility and DR polishing problems, (iv) timing profile, (v) component statistics for the preprocessed modelINFO
-level) iteration log tableINFO
levelTODO
ConfigDict.user_values()
should return only child entries, not instance itself #3722 merged) Simplify logging of user optionsDEBUG
-level logsLegal Acknowledgement
By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution: