-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Compute mutation type of a ClusterSeed or ClusterQuiver #13425
Comments
Dependencies: 13424 |
Changed dependencies from 13424 to #13424 |
Changed author from Gregg Musiker and Christian Stump to Gregg Musiker, Christian Stump |
comment:4
The tests become much too slow with this patch: with only #13424 applied:
and with this patch applied as well:
We should avoid that. |
Changed keywords from cluster algebra, quiver to cluster algebra, quiver, days45 |
comment:7
Hi Gregg! I know you are again working on this patch: it needs to be (almost trivially) rebased agains the newest version of #13424. |
comment:8
Just uploaded a review patch (although I'm still working through it and this is just partial work). The bulk of the changes are from mutation_type.py: I documented and added examples for all methods until the testing I also changed auxiliary command names so that they begin with an underscore. Christian, there were a few places where I had questions for you, More to come later as I look through the other .py files in this patch also. Gregg |
comment:9
Christian, I just posted a new review patch. I think the ticket is not too far away from being ready. I documented as much of the code as I could with comments, and added explanations and examples for almost all methods. There are a few outstanding comments or questions marked with CHECK. Also, I see that in cluster_seed.py we add mutation_type() commands every time the user asks for a Cluster Variable or related command. However, this greatly slows down those methods with the only advantage being the almost_positive_roots command. So I figured we should discuss this over email or skype at some point. We also discussed at Sage Days about trying to optimize by having the program test for infinite_mutation_type by randomly mutating a few times if more than 6 vertices before trying to test for a recognizable mutation_type. I haven't made such changes. Gregg |
comment:10
Hi Gregg -- thanks a lot for the hard work you are putting into my unreadable code! I am about to upload a review patch. Most importantly, I have made the random tests work again and did quite some test to ensure the code does what it is supposed to do. I solved some of the CHECK's, I think it is better to discuss the others on the phone. Before giving the code a positive review, I think we should have a strong cpu make some tests and random tests for rank 8-12 since I think I never did that (though I also think that the problems should occur already earlier). Cheers, Christian |
comment:11
Hi Gregg, I uploaded a new patch. The main changes are:
The old mutation type check was actually very buggy. We still have a problem to solve: if you want to test the mutation type of I would also appreciate if you could try to add some more tests to the mutation type and the is_finite_type tests and check if I didn't introduce any new bugs... Cheers, Christian |
comment:12
Concerning the spkg: the method is now written in a way that the algorithm tries to be fast both if the data files are present or not. If this ticket is ready before we get the spkg ready I would this vote for getting it in 5.9 rather than wait for the spkg. |
Attachment: trac_13425-mutation_type-gm.patch.gz |
This comment has been minimized.
This comment has been minimized.
Reviewer: Christian Stump, Gregg Musikier |
This comment has been minimized.
This comment has been minimized.
Attachment: trac_13425-review-cs.patch.gz |
comment:15
There is the green light, finally! Gregg, if you are happy with my latest changes and you can verify that I didn't do any mistakes while folding the patches, please give it a positive review! |
comment:17
There are various problem with the documentation:
Also, I wondering whether you are using |
comment:19
Replying to @jdemeyer: Hi Gregg, I will upload a fix within the next minutes -- though I don't really find the second doc warning in the docstring. |
Attachment: trac_13425-review_two-cs.patch.gz |
comment:32
Replying to @stumpc5:
I have no idea, ask sage-devel. |
comment:33
Replying to @stumpc5:
If you knew this problem existed, this ticket should never have gotten positive review... |
comment:34
Replying to @jdemeyer:
If you can afford a sort somewhere, a typical trick is to do:
And then it will sort according to the string representation which is platform independent. I usually only use that for sorting the results in the doctests. But in your situation that could be ok too. Cheers, |
comment:35
Replying to @nthiery:
Good idea, thanks -- the problem is not at all in a time critical method, so no problem to do your trick!
I find it very hard to judge if a problem like this only appears because the machine it happened on is a 32bit Mac - I will anyway post such a problem on sage-devel next time... |
Changed reviewer from Christian Stump, Gregg Musikier to Christian Stump, Gregg Musiker |
Attachment: trac_13425-review_five-cs.patch.gz |
comment:38
Replying to @stumpc5:
I checked the patch, and it looks reasonable. You can set the ticket positive review on my behalf as soon as the light goes green and, if you can run them there, the test pass on your other machine which was causing trouble. |
comment:39
The key=str fix in quiver_mutation_type.py seems to have already solved the issues in save_quiver_data(), etc. I am about to upload a new patch where we use the key=str for _mutation_type_test() and _random_multi_tests() in mutation_type.py. Reordering the examples accordingly slightly, this now passes on my machine (the one that was having trouble before). All tests passed! Christian, assuming that it passes on your machine with the new order of examples, and if you don't see other issues, it should be ready to go. Is there any way to get the patchbot to run again??? Do you want to fold the patches all into one again? If the patchbot and you are happy, I think it's ready for a positive review on my behalf. Gregg |
comment:40
Attachment: trac_13425-sixth-review-gm.patch.gz I confirmed with Christian that with the new patch, -t -long passes on his machine, and I just successfully ran -testall -long overnight on my machine (which was the one with the slight order difference in the output during a few doctests). So with this latest patch, it is now ready to go. Gregg |
comment:42
Jeroen will want to know and I'd like to know too. Which patch do you need to apply? You should update the summary with the list of patches that needs to be applied for this ticket. We cannot know which of the patch listed in this ticket are to be applied without digging deeper. |
This comment has been minimized.
This comment has been minimized.
comment:44
Replying to @kiwifb:
Just modified the description accordingly. All seven patches should be applied in order. Gregg |
comment:45
Thanks for the clarification. I have put it in the desired format. |
This comment has been minimized.
This comment has been minimized.
Merged: sage-5.9.beta2 |
comment:47
Doctesting |
comment:48
Doctesting |
comment:49
Replying to @nexttime:
This one is totally weird. When running I then built Sage 5.9.beta2 with FLINT 2.3, and there it took less than half a minute (same machine, same compiler flags), repeatedly, and so I reran the test in vanilla 5.9.beta2 again, and it now takes about the same time there as well. Seems like the new doctesting framework is pretty flaky. (Still, |
This ticket implements mutation type checks for cluster seeds and quivers.
Apply to the sage library:
Depends on #13424
Component: combinatorics
Keywords: cluster algebra, quiver, days45
Author: Gregg Musiker, Christian Stump
Reviewer: Christian Stump, Gregg Musiker
Merged: sage-5.9.beta2
Issue created by migration from https://trac.sagemath.org/ticket/13425
The text was updated successfully, but these errors were encountered: