-
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 |
My opinion: I believe that the name |
I do note that the word |
We could (and IMO should) add a deprecation to the old name in case that you do a rename. (This is possible to do for only some dispatches) |
The method exists, is exported and documented. So removing it or deprecating it both require 2.0? |
No, deprecating just requires a minor bump (so 1.3). Removing I agree with 2.0. |
I feel like the discussion about the name is moot as long as no-one who would actually use the function is voicing an opinion. For now, I would leave the name as it is (possibly with an alias for another variant) and hope that the original contributor chose it well. With this hope, I am against deprecating anything unless we are really sure about it. |
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: