-
Notifications
You must be signed in to change notification settings - Fork 48
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 factorial2 and pytest fix #308 and #309 #319
Fix factorial2 and pytest fix #308 and #309 #319
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.
@D-TheProgrammer Thanks for the pull request and my apologies for the large number of changes we're going through while you were making pull requests.
There are still a few linters complaining. If you click on "Details" on the "pre-commit.ci - pr" line, and then scroll down, you will see the errors. Normally, when you install pre-commit in the clone of the repository on your computer, it will not allow you to make the commit when there are such issues. If you need help getting that to work, please let me know. (This is the recommended procedure, because fixing issues is always easier right after having written the code.)
If you need help with fixing the linter complaints themselves, just let me know.
@tovrstra We tried with our computers and we had 4 or 5 linters that didn't work but they were not tied to our fix it was about the other functions outside of factorial2 but still in overlap.py, this is why we did our PR because we thought that someone else was working on those other issues. |
I have another small question. I may be overlooking something, but I don't believe we need the floating point case in IOData and always need exact=True, which may be used to simplify our version of |
Ok, sounds good. No worries. Thanks for the quick reply. I'll take care of it after the weekend |
Here's the code health analysis summary for commits Analysis Summary
|
|
@D-TheProgrammer I made all improvements I could think of. Can you double-check the final result? Thanks. |
- Include type checks - Include other arrays - Include more cases
Normally if we're not wrong @LudoRNLT and I think it's good and it ticks all the boxes. |
Thanks for checking. I'll merge soon. |
This pull request represents another attempt to address the issue. The previous attempt was unmergeable due to being made from the main branch. The objective of this fix is to address the issues with the
factorial2
function in theòverlap.py
file and create a unit test using pytest namedtest_factorial2
. Our solution for the function has been validated by passing the linting checks.