-
Notifications
You must be signed in to change notification settings - Fork 126
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
BoundsError
thrown by weight(hook_lengths(partition([4,2,1])))
#4230
Comments
The code in It would be easy to fix |
To get a more helpful error message, the code should check that the input is semi-standard, and produce a comprehensible message if not: e.g. |
Regarding @fingolfin comment about the name. Oscar tends to use long names (with several exceptions). While the name |
@JohnAAbbott can you please open a PR that let's it throw an error if the tableau is not standard? If someone needs the function more generally they can request it. |
I'm almost ready to make a PR. One question: what name should the function have |
A quick look at the code suggests that it requires that the tableau be semistandard, but does not check this! Either we modify the code so that it checks, or we modify it so that all Young tableaux are accepted. I do also wonder whether the name should be changed to
weight_sequence
. I have searched quickly on internet: given a YT the weight is a sequence; it may assume that the entries in the YT are positive (or maybe just non-negative).Originally posted by @JohnAAbbott in #3850 (comment)
The text was updated successfully, but these errors were encountered: