-
-
Notifications
You must be signed in to change notification settings - Fork 492
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
Replace sage.algebras.yangian.GeneratorIndexingSet with cartesian_product #34375
Comments
Author: Matthias Koeppe |
Commit: |
New commits:
|
comment:3
This probably can now just be replaced by |
comment:4
Probably, but I'm not inclined to work on that |
comment:5
(edit: NOT inclined) |
comment:6
Actually, I am starting to get a little worried about this (AFAIK implicit) requirement that every input to index a I would say the bug described in the ticket is really a fault of Hence, I think this ticket as-is needs more justification than what has been given. That being said, would be good here to avoid code duplication with |
comment:7
Replying to @tscrim:
Nobody is making or proposing this change |
comment:8
Your |
comment:9
|
comment:10
A duck-typed cardinality method, I see. |
comment:11
Replying to @mkoeppe:
That is the by-product of saying that |
comment:12
I ran into this problem only because we a |
comment:13
I think that is a bad test. It exactly is (somewhat implicitly) giving the specification I said in comment:6. Why is that implementation of |
comment:14
|
comment:15
Then I don't understand the problem. The |
comment:16
Replying to @tscrim:
Exactly, which is why it's not enough just to give something a |
comment:17
Replying to @mkoeppe:
I think it is foolhardy to enable one specific implementation to dictate what all other classes must do, independent of what their intended purpose is for (a la comment:6). |
comment:18
Which "implementation" are you referring to? |
comment:19
Replying to @mkoeppe:
The implementation of |
comment:20
This file clearly needs to be updated using the infrastructure of |
comment:21
I really don't think we should mandate that it needs to be an |
comment:69
Replying to @mkoeppe:
It's also invalid to say "Because it doesn't follow my arbitrary specifications of what I think is good that you cannot do it."
Then please stop citing and using them as specifications or as a reason why we should do certain things. |
comment:70
Replying to @mkoeppe:
Indeed, it is sayin "if I am a subclass of this ABC, then I will implement the specifications of this ABC". In this case, it is just that these methods are provided. |
comment:71
Replying to @mkoeppe:
Which are? |
comment:72
Replying to @tscrim:
You are still missing that for these special ABCs there are 3 additional special mechanisms that make a class a subclass of the ABC. I've already quoted them for you in comment:54 |
comment:73
I recommend to read the PEP that introduced these things - https://peps.python.org/pep-3119/#abcs-for-containers-and-iterators |
comment:74
Replying to @mkoeppe:
I am wondering if we have a slightly different definition of the words that they are using in the doc. We are disagreeing on the existence of something in that doc. The PEP you just cited actually has specifications. However, that is about something that is an explicit subclass. The |
comment:75
I think you'll have to take a bit of time reading it. |
comment:76
To guarantee that the behaviors specified in the PEP are followed, you should use |
comment:77
No, that does not make any sense. |
Reviewer: Matthias Koeppe |
comment:78
But in the meantime, the bots have all turned green. We can continue the discussion about |
comment:79
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:81
The generic element for the new indices was too big. I explicitly pass in a few elements for testing. It now passes in a little over a second for me (on my fairly fast computer). |
Changed branch from public/algebras/yangian_index_set-34375 to |
We replace the
GeneratorIndexingSet
inyangian.py
withcartesian_product
, which its implementation is (now) duplicating.CC: @tscrim
Component: algebra
Author: Travis Scrimshaw
Branch/Commit:
abf1edc
Reviewer: Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/34375
The text was updated successfully, but these errors were encountered: