-
Notifications
You must be signed in to change notification settings - Fork 61
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
test expected output #486
test expected output #486
Conversation
@Bchass After you rebase this branch, you could try to figure out where the function changes a numpy array to a 2D list at each step by making python print the variable type after each step. toqito/toqito/matrices/cyclic_permutation.py Lines 57 to 62 in eb58207
For example, temporarily use Hopefully, this makes sense? Again, I haven't had the chance to dig into the issue yet but this is what my first step would have been. |
Thanks for the info! I'll look into it more at some point this weekend. |
@purva-thakre Stepping through the function, it never converted to a 2D list. It boiled down to whitespace and how I was calling the function in the examples. Came across: https://numpy.org/doc/stable/reference/generated/numpy.set_printoptions.html and was able to format the result how Edit: resolved the conflicts but the |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #486 +/- ##
========================================
- Coverage 98.1% 98.1% -0.1%
========================================
Files 161 161
Lines 3096 3095 -1
Branches 753 752 -1
========================================
- Hits 3038 3037 -1
Misses 37 37
Partials 21 21 ☔ View full report in Codecov by Sentry. |
That's interesting! |
More failures to investigate tomorrow |
@Bchass You can ignore the drop in |
Description
Fixes #471
Changes
Checklist
ruff
andpylint
for errors related to code style and formatting.pytest
.Sphinx
build can be checked locally for any failures related to your PRlinkcheck
to check for broken links in the documentationdoctest
to verify the examples in the function docstrings work as expected.