-
-
Notifications
You must be signed in to change notification settings - Fork 487
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
Add to check for fixed total/length in IntegerVector #34510
Comments
Changed keywords from gsoc2022 to gsoc2022 integer-vector check |
comment:2
There is also a defect in this:
|
Branch: u/tkarn/34510 |
New commits:
|
Commit: |
comment:4
I would just check that it belongs to the parent. The first test should be done by that anyways. Also, for the error message:
|
Reviewer: Travis Scrimshaw |
comment:5
Once changed and a green bot, positive review. |
This comment has been minimized.
This comment has been minimized.
comment:7
Should be good to go. Removing the first check allowed [-1] to be understood as an |
comment:8
Good catch on another bug. -if not isinstance(x, (list, tuple, IntegerVector)):
+if not isinstance(x, sequence): using the |
comment:10
Replying to Travis Scrimshaw:
Done! |
This comment has been minimized.
This comment has been minimized.
comment:13
Here's something surprising!
|
comment:14
Replying to Trevor Karn:
The bug because of the |
comment:16
Actually, I suspect this holds for things more general things within Sage because of the extra requirements of a |
comment:17
Replying to Travis Scrimshaw:
I think we discussed this offline but I just want to confirm that this should be a |
comment:18
Yes, that's correct. |
comment:19
Replying to Travis Scrimshaw:
Ok then I think this ticket is ready for review. Am I missing anything? |
comment:20
LGTM. Thank you. |
Changed branch from u/tkarn/34510 to |
The current
IntegerVector.check()
method only checks for the positivity of each element. This adds a check for specified totals (n
) and lengths (k
).This ticket also allows for any
collections.abc.Sequence
object to be checked as an integer vector.CC: @tscrim @trevorkarn @darijgr
Component: combinatorics
Keywords: gsoc2022 integer-vector check
Author: Trevor K. Karn
Branch/Commit:
43e6813
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/34510
The text was updated successfully, but these errors were encountered: