-
-
Notifications
You must be signed in to change notification settings - Fork 567
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
update to Pynac 0.2.4 #12950
Comments
Attachment: trac_12950-pickle_symbolic_function.patch.gz |
Attachment: trac_11423-atan_error.patch.gz |
Attachment: trac_12950-symbolic_beta.patch.gz |
Attachment: trac_12950-pynac_infinities.patch.gz |
comment:1
Attachment: trac_12950-psi_evalf.patch.gz |
This comment has been minimized.
This comment has been minimized.
comment:2
This also fixes #9547 and includes a doctest. That ticket should be closed once this is merged. |
comment:6
I've made a tentative spkg available at http://perso.telecom-paristech.fr/~flori/sage/pynac-0.2.4.spkg which adds an .hgignore file to exclude the src directory from tracking. I've had a quick look at the patches which look good overall. |
Reviewer: Jean-Pierre Flori |
Changed work issues from make spkg to review spkg, correct some typos in the patches |
This comment has been minimized.
This comment has been minimized.
comment:7
I'm currently running "make ptest" (on sage-5.0 on an ubuntu 12.04 amd64) and there are at least some new problems in revolutio_plot3d (or something like that) because atan2(0,0) now raises an error. |
comment:8
I also got two failures in sage/stats/basic_stats due to the new ordering of numerics (I guess). |
comment:9
Oh, so now I'm a little lost. Anyway, the dependencies between the tickets should be clearly stated and written into the corresponding trac field. |
Fix for revolution_plot3d |
comment:10
Attachment: trac_12950-revolution_plot3d.patch.gz Thanks for looking into this! Replying to @jpflori:
I tried to put all the patches required to make the new version work with Sage on this ticket. If I didn't screw up, the rest should be nonessential, doctests, etc. It used to be a major hassle to create patches for each ticket separately, upload them, then make a ticket with an spkg etc. I think this way is easier for everyone.
I don't think the patch attached to #11919 is necessary. But I'm reluctant to make changes to that ticket while this is being reviewed.
This should depend on the yet to be opened ticket mentioned in #11423 comment:6. But, changing the plot3d stuff to handle errors in the numerical evaluation phase is a big change (AFAIK, Titus actually had a go at it.), and it is very much independent of a Pynac release, apart from the minor issue that one of the doctests there happened to call
The doctests on #11155 are minor, so we left that patch out of this ticket. Just now, I made that ticket depend on this one and gave it a positive review. |
comment:11
I've just uploaded a fix for the revolution_plot3d problem. When the revolution axis goes through (0,0,0), the previous behaviour was correct although obtained through the general formula which in fact should not have made sense. The proposed fix is to treat the special case (0,0,0) separately as far as the phase calculation is concerned. (PS: We posted more or less at the same time, so this post might seem strange) |
comment:12
A little concern about the effect of the new numeric ordering, if I understand correctly what happens (not really sure about the initialization of the complex I). This explains the changes in some doctest output, but I'm concerned that this will surely lead to problems in the pynac internal ordering... |
comment:13
Further rants: in fact in (quadratic) number fields at least we always have whatever > whatever else true and whatever < whatever else false. But I is defined with embedding=CC.gen(), i.e. the usual definition, and so we have CC(I) considered as "positive" (no surprise here...). |
comment:14
I think that the above could or even should be handled in a separate ticket (#9880 for example...). In a few minutes, I'll upload a reviewer patch fixing one or two very minor typos and another patch fixing the two other doctests modified by the complex I ordering changes. I'll also upload new versions of all the other patches so that the commit messages include the trac ticket number. |
Attachment: trac_11423-atan_error-trac.patch.gz Further doctests fixes. |
Attachment: trac_12950-further_doctests_for_numerics.patch.gz Attachment: trac_12950-pickle_symbolic_function-trac.patch.gz |
Attachment: trac_12950-psi_evalf-trac.patch.gz |
Attachment: trac_12950-pynac_infinities-trac.patch.gz |
Attachment: trac_12950-symbolic_beta-trac.patch.gz Reviewer patch; minor typos |
This comment has been minimized.
This comment has been minimized.
comment:15
Attachment: trac_12950-reviewer.patch.gz |
comment:16
I think my work here is done. So if one is ok with the packaging I made and the few other patches I uploaded, this can get positive review. |
comment:17
Replying to @jpflori:
This is actually #7160. It causes a lot of other problems in Pynac as well. I give a positive review to Jean-Pierre's patches. The spkg still needs to be reviewed. Any volunteers? |
Changed work issues from review spkg, correct some typos in the patches to review spkg |
Changed reviewer from Jean-Pierre Flori to Jean-Pierre Flori, Burcin Erocal |
Changed reviewer from Jean-Pierre Flori, Burcin Erocal to Jean-Pierre Flori, Burcin Erocal, Benjamin Jones |
comment:18
Started reviewing the spkg. The package itself looks good, installs successfully, and with the attached patches applied, sage passes a subset of tests:
I'm running all tests now, will report when complete. |
Changed keywords from pynac to pynac sd40.5 |
comment:19
All tests pass, I checked the hg log and indeed, all relevant changes appear to come from upstream. The spkg unpacks fine, and I can successfully recreate it using the Everything looks good, so I'll give the spkg a positive review. |
comment:20
While updating #11143 I ran into the following issue which occurs when the patches here and the new pynac spkg are installed:
It looks like there is something going on with the conversion of Another comment: why are the instances of |
Changed work issues from review spkg to none |
Merged: sage-5.1.beta2 |
comment:24
Replying to @benjaminfjones:
Did you want to open a ticket about these, or was this just a point of clarification? On an unrelated note, I'm a little confused as to why all the patches ended up here. I understand that this is convenient, but what happens then is that a whole bunch of tickets are closed as "sage-invalid/dup" and really they weren't dups at all, they just happened to be fixed by this spkg. At any rate, I recommend making sure that such tickets (like #11423, #9547, #12303) are given a normal milestone - even though the fix is here, that didn't make the ticket and its authors/reviewers less valid somehow. |
comment:25
Replying to @kcrisman:
Feel free to change them back to a different milestone. I also hesitated before changing to duplicate/invalid/wontfix. I just needed a way to indicate to Jeroen that these are tickets that can be closed without any work. I also tried to make the authors of those tickets were acknowledged here. |
comment:26
I sort of figured that was the situation - there is no perfect workflow for all needs, by Arrow's Theorem, and it's not like you don't have enough to do! I'll check if any changes would be required. |
There is a new Pynac release which contains fixes to:
abs(pi+I) -> pi + I
(upstream from Alexei Sheplyakov)atan2(0,0)
should be undefined (by Volker Braun)Following the comments in this thread on sage-devel, the release without the upstream mercurial directories is available as a tarball:
http://sage.math.washington.edu/home/burcin/pynac/pynac-0.2.4.tar.bz2
A tentative spkg is available at:
http://perso.telecom-paristech.fr/~flori/sage/pynac-0.2.4.spkg
It also adds an .hgignore file to exclude tracking of the src directory.
Apply:
CC: @sagetrac-titusn @benjaminfjones @kcrisman @jpflori
Component: symbolics
Keywords: pynac sd40.5
Author: Volker Braun, Burcin Erocal, Jean-Pierre Flori, Titus Nicolae, Alexei Sheplyakov
Reviewer: Jean-Pierre Flori, Burcin Erocal, Benjamin Jones
Merged: sage-5.1.beta2
Issue created by migration from https://trac.sagemath.org/ticket/12950
The text was updated successfully, but these errors were encountered: