-
Notifications
You must be signed in to change notification settings - Fork 276
Minor update to logic in Degeneracy Hunter #1591
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?
Conversation
Sorry, I was not careful with my branches. This also includes the simple edit in #1590 |
This is ready to review. |
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.
Hi @adowling2, thanks for opening this. To resolve the test failures, I believe you just need to update the expected
string object. Try adding print(stream.get_value())
right before the failing assert
check, it should print the correct string for you in the error log, then update expected
and remove the print statement.
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 changes here look good, the tests just need to be updated with the new output values.
) | ||
|
||
stream.write(f"{TAB}Smallest Singular Value {e}:\n\n") | ||
stream.write(f"{TAB}Smallest Singular Value {e} ({self.s[e-1]:.3e}):\n\n") |
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.
Thank you for this change---I was going to make it myself at some point.
f"constraint {cons.name}. This probably indicates the constraint" | ||
" is not a major component of an IDS." | ||
) | ||
return None |
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.
return None
works just like return
. Since this statement is at the end of the function, no return
statement is needed at all. You don't need to actually change anything here (unless Pylint says to), but I thought I'd point it out.
@adowling2, any progress on this (given the above suggestions)? |
@adowling2 Will you have the chance to address these comments anytime soon? |
This is back on my radar now that the semester is over. |
@adowling2 is this now back off your radar? |
@adowling2, now moving to Nov... |
Fixes
Summary/Motivation:
Changes proposed in this PR:
ValueError
with an appropriate print statement.Legal Acknowledgement
By contributing to this software project, I agree to the following terms and conditions for my contribution: