-
Notifications
You must be signed in to change notification settings - Fork 92
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
Removing unused method arguments #754
Conversation
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 work of a true hero -- good cleanup!
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.
Awesome!
@@ -938,12 +938,12 @@ class TestHelix(TestShapedComponent): | |||
"id": 0.1, | |||
} | |||
|
|||
def test_getBoundingCircleOuterDiameter(self, Tc=None, cold=False): | |||
def test_getBoundingCircleOuterDiameter(self): |
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.
Good catch.
This went through the review of #747 yesterday without any notice!
""" | ||
pass | ||
|
||
|
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.
This function is just egregious. How did this get in here??
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 can't tell. It had been there for three years.
I know clean up PRs aren't sexy, but man, sometimes they are necessary.
…tional arguments (#922) * Update the entry point class to provide the settings file as an required position argument when a user requests the help menu. Additionally, add a try/except around adding a new argument from case settings to handle duplicate entries more robustly rather than requiring exclusion of settings like `verbosity` and `branchVerbosity`. * Suppress the printing of all possible settings in clone CLI * There are 18 entry points! * Make changes to checkInputs CLI and tests Having both a settings file and patterns arg is both redundant and causes unreliable use issues. Since only patterns was used in invoke, decided to remove the settingsArgument as optional. I also removed the sys.exit(), since there is no need that I can think of to do this. The armi unit test settings file, e.g., fails this check (with can start = UNKNOWN). * Move settings arg processing to not be first (nargs='*' behavior means this can't be first in the list) * Minor docstring add * Remove reloadDBName setting from armiRun.yaml This is only needed for 3 tests, and it was causing some annoying failures on the check-inputs entry point test (although I fixed it separately by rejecting the notion that there needed to be a sys.exit()). * Update warning to error for checkInputs CLI * Remove unused CLI args from checkInputs (finishing what #754 started) * Remove update to real file because that ain't necessary * Release Notes Co-authored-by: Arrielle Opotowsky <c-aopotowsky@terrapower.com>
…tional arguments (terrapower#922) * Update the entry point class to provide the settings file as an required position argument when a user requests the help menu. Additionally, add a try/except around adding a new argument from case settings to handle duplicate entries more robustly rather than requiring exclusion of settings like `verbosity` and `branchVerbosity`. * Suppress the printing of all possible settings in clone CLI * There are 18 entry points! * Make changes to checkInputs CLI and tests Having both a settings file and patterns arg is both redundant and causes unreliable use issues. Since only patterns was used in invoke, decided to remove the settingsArgument as optional. I also removed the sys.exit(), since there is no need that I can think of to do this. The armi unit test settings file, e.g., fails this check (with can start = UNKNOWN). * Move settings arg processing to not be first (nargs='*' behavior means this can't be first in the list) * Minor docstring add * Remove reloadDBName setting from armiRun.yaml This is only needed for 3 tests, and it was causing some annoying failures on the check-inputs entry point test (although I fixed it separately by rejecting the notion that there needed to be a sys.exit()). * Update warning to error for checkInputs CLI * Remove unused CLI args from checkInputs (finishing what terrapower#754 started) * Remove update to real file because that ain't necessary * Release Notes Co-authored-by: Arrielle Opotowsky <c-aopotowsky@terrapower.com>
Description
@keckler recently opened a ticket for an unused method argument. Well, we fixed his method, but I thought I should do a quick cull through the rest of the repo to see if I could find other methods with unused arguments, and fix those as well.
Checklist