-
Notifications
You must be signed in to change notification settings - Fork 63
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
Fix the interface of make_I
#62
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.
It looks good but I suspect that due to this issue I had avoided using make_I
in some other parts of the source. Let me check now
Codecov Report
@@ Coverage Diff @@
## master #62 +/- ##
==========================================
+ Coverage 77.74% 77.86% +0.11%
==========================================
Files 49 49
Lines 7321 7329 +8
==========================================
+ Hits 5692 5707 +15
+ Misses 1629 1622 -7
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it 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.
Looks good!
The function `evotorch.tools.make_I` was accepting a single integer as the size indicator of the identity matrix. However, The method `Problem.make_I` was working only when the size was given as a single-element tuple. This commit makes their interfaces compatible by making isure that both will work with a single integer or with a size tuple containing a single integer. Tests are updated to verify the correctness of the revised interfaces.
81beef0
to
5c7d266
Compare
The function
evotorch.tools.make_I
was accepting a single integer as the size indicator of the identity matrix. However, the methodProblem.make_I
was working only when the size was given as a single-element tuple. This pull request makes their interfaces compatible by making isure that both will work with a single integer or with a size tuple containing a single integer. Tests are updated to verify the correctness of the revised interfaces.