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
Implement global options for WQSym #25155
Comments
Branch pushed to git repo; I updated commit sha1. Last 10 new commits:
|
Commit: |
Changed dependencies from 25133 to #25133 |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:5
If my changes look good, then positive review. |
Reviewer: Travis Scrimshaw |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
I'm happy with these changes. How do others feel about the following snippet from
The reader may be led to think that |
comment:9
Just say "(in this case, |
comment:10
The other way would be to say "one of the following must be provided" but that is slightly misleading as
|
comment:11
Argh! Do we really want duck-typing here? Please think hard about whether this is really unambiguous and whether it's worth the slowdown. |
comment:12
Yes, this is the behavior we want. It is stupid and annoying to make users have to use a keyword argument when a packed word as a list is sufficient. The ambiguity is when you want a packed word whose letters are sets/lists/etc. (This is also not ducktyping, but parsing input. Ducktyping is doing something like |
comment:13
So what is better for At present, the code first tries to process
but this might be better:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:15
Replying to @alauve:
I don't think it matters. Actually, it only treats words in |
comment:16
I don't quite know what you mean by "modulo Additionally, are there any more changes from #25133 that need to be brought in, or is this good to go? |
comment:17
I am suggesting a change: There is also a doctest in |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:19
Thanks. LGTM. |
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:
|
comment:22
Trivial rebase. |
comment:23
PDF docs don't build |
Branch pushed to git repo; I updated commit sha1. Last 10 new commits:
|
comment:26
This should do it. (Sorry for forced push -- I had a dirty develop branch, and it smuggled several other tickets in this.) |
Changed branch from public/combinat/wqsym_options-25155 to |
Changed commit from |
comment:28
In my view, this ticket is incomplete. Notice the following:
I'd like to see things like If anybody thinks this is worth a new ticket, perhaps they could weigh-in, after taking a peek at this branch: |
comment:29
I'm not sure I want global options to modify anything other than output. Imagine, for example, that some code internally calls If you want a quick way to turn a packed word into a basis element of
Maybe this should be suggested in the doc. |
comment:30
Replying to @darijgr:
I think this is still "have", but I don't have a concrete issue. I agree with Darij on this, it should only affect the printing output as a convenience for the user. Actually, why the packed word input does not work (which at least
So we might want to consider moving the checking to see if the input-is-a-word to the |
comment:31
Replying to @tscrim:
. This seems like a good idea to me. I can start a ticket to make this happen. However, ... I wonder what will/should happen when the user enters |
comment:32
Python will not fundamentally distinguish between |
comment:33
Yeah..., came to that realization after working on the aforementioned branch for awhile this afternoon. If we avoid making a distinction between tuples and lists, should we then drop this idea altogether? So, in documentation, we suggest users build the |
comment:34
Quite possibly. Another option I just thought of is to construct a custom |
Ordered set partitions are in bijection with packed words. It would be nice to be able to work with packed words in the Hopf algebra WQSym. In the branch, I shall also implement "tight" and "compact" notations for the output.
Depends on #25133
CC: @alauve @tscrim @darijgr @amypang @zabrocki
Component: combinatorics
Keywords: IMA coding sprint, CHAs
Author: Aaron Lauve
Branch:
c2ffc13
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/25155
The text was updated successfully, but these errors were encountered: