-
Notifications
You must be signed in to change notification settings - Fork 133
Logging message enhancement #606
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
Open
jinningwang
wants to merge
25
commits into
CURENT:develop
Choose a base branch
from
jinningwang:enhance
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 8 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
159f964
Skip InitChecker logging for offline devices
jinningwang 07b5677
Skip limiter upper and lower adjust for offline devices
jinningwang 855f1cf
Update release notes
jinningwang 2143ca2
In one model, issue a warning only once for NumParam value checks
jinningwang 153e9a3
Wording
jinningwang 701b131
Add tests for InitChecker logging
jinningwang b7fbce6
Add test for correction warning only show up once for one model param
jinningwang 11cedc1
Minor fix
jinningwang c7a6ed3
Ensure ue type
jinningwang 07087a0
Remove the setuptools in RTD config
jinningwang 7815ff3
Issue warning only once for unused data
jinningwang 30adfd1
Add tests on modeldata add warning trigger
jinningwang 49dd376
Update release notes
jinningwang 3704089
Reverse logging only once for out of range numparam
jinningwang 0c33a7c
Update release notes
jinningwang 87b50d6
Remove tests on numparam logging
jinningwang c82c328
Extend group RenPlant with common param ree
jinningwang 4d934a5
Extend group TurbineGov with common param syn
jinningwang 2721e9b
Extend group VoltComp with common param avr
jinningwang 757f8f3
Extend group PSS with common param avr
jinningwang 8f1124e
Extend groups FreqMeasurement and PhasorMeasurement with common param…
jinningwang 7a15c62
Extend group PLLwith common param bus
jinningwang 1264a14
Extend group Motor with common param bus
jinningwang 4049317
Minor fix
jinningwang ddc308c
Minor fix
jinningwang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import andes | ||
|
||
|
||
def test_numparam_online(caplog): | ||
""" | ||
Ensure In one model, issue a warning only once for NumParam value checks. | ||
""" | ||
case = andes.get_case("GBnetwork/GBnetwork.m") | ||
mpc = andes.io.matpower.m2mpc(case) | ||
|
||
mpc['branch'][2:5, 3] = 0 | ||
|
||
ss = andes.system.System() | ||
with caplog.at_level("WARNING"): | ||
andes.io.matpower.mpc2system(mpc, ss) | ||
assert caplog.text.count("Non-zero parameter Line.x corrected to 1e-08.") == 1 |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.