[sage-devel] Re: Finding the right place to edit code

2016-05-15 Thread saad khalid
Thanks for all the help so far guys. This issue is persisting, so I think I'm going to make a separate topic about this(it doesn't seem to have anything to do with the OP). Thank you! -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscri

[sage-devel] Re: Finding the right place to edit code

2016-05-14 Thread Ralf Stephan
On Saturday, May 14, 2016 at 7:10:00 PM UTC+2, saad khalid wrote: > > Thanks guys! Another issue has popped up since I installed sympy, it is > exactly what is described in these two posts: > > http://trac.sagemath.org/ticket/16624 > https://github.com/sympy/sympy/issues/8022 > > I think the issue

[sage-devel] Re: Finding the right place to edit code

2016-05-14 Thread saad khalid
Thanks guys! Another issue has popped up since I installed sympy, it is exactly what is described in these two posts: http://trac.sagemath.org/ticket/16624 https://github.com/sympy/sympy/issues/8022 I think the issue is that the version of sympy I've installed is using mpmath code in a way that

Re: [sage-devel] Re: Finding the right place to edit code

2016-05-14 Thread John Cremona
I'm no python expert but for me sage -pip freeze | grep sympy outputs sympy==0.7.6.1 John On 13 May 2016 at 22:06, Arpit Merchant wrote: > Hi, > > I'm new to Sage too, but I faced this exact same error on a different file > recently. Basically, my understanding is that sometimes Sage is unabl

[sage-devel] Re: Finding the right place to edit code

2016-05-13 Thread Arpit Merchant
Hi, I'm new to Sage too, but I faced this exact same error on a different file recently. Basically, my understanding is that sometimes Sage is unable to use a package that is installed on the local system and is not available within its directory. Check the following path (or equivalent) in yo

[sage-devel] Re: Finding the right place to edit code

2016-05-13 Thread saad khalid
Another note, this is happening on my master branch as well, which is just an uneditted version of sage 7.1. I try running the command: ./sage-t src/sage/interfaces/maxima_lib.py and it tells me this: saad@saad-ThinkPad-X201:~/sage$ ./sage -t src/sage/interfaces/maxima_lib.py no stored timings

[sage-devel] Re: Finding the right place to edit code

2016-05-13 Thread saad khalid
I believe that I pushed my branch to the trac server on here? http://trac.sagemath.org/ticket/20595#comment:3 Or is that not the same as pushing my branch? Regardless, I've also put it here under the develop branch(which I believe is the same as the branch trac made for the ticket): https://gith

[sage-devel] Re: Finding the right place to edit code

2016-05-13 Thread saad khalid
I believe that I pushed my branch to the trac server on here? http://trac.sagemath.org/ticket/20595#comment:3 Or is that not the same as pushing my branch? Regardless, I've also put it here under the develop branch: https://github.com/Babyll/sage/tree/develop Thanks! -- You received this messa

[sage-devel] Re: Finding the right place to edit code

2016-05-13 Thread Dima Pasechnik
it might be the easiest to put your branch somewhere (on trac git server, or github) so that it can be viewed and tested On Friday, May 13, 2016 at 8:02:48 PM UTC+1, saad khalid wrote: > > Ohhh, I see. Thanks! Unfortunately, I'm still unable to run the doctests > on the file. I'm getting the sam

[sage-devel] Re: Finding the right place to edit code

2016-05-13 Thread saad khalid
Ohhh, I see. Thanks! Unfortunately, I'm still unable to run the doctests on the file. I'm getting the same error as I mentioned above, and the error doesn't seem to have anything to do with the file itself. Am I inputting the command incorrectly? -- You received this message because you are s

Re: [sage-devel] Re: Finding the right place to edit code

2016-05-13 Thread John H Palmieri
Right. In particular, if you have LaTeX code in your docstring, it should start with r""". For example, if the docstring starts with """ instead of r""", then '\to' will end up being converted to TAB (\t in a plain Python string is a tab) followed by 'o'. John On Friday, May 13, 2016 at 11:

Re: [sage-devel] Re: Finding the right place to edit code

2016-05-13 Thread David Roe
Google for python raw strings. The main difference is how they treat backslashes. On May 13, 2016 09:34, "saad khalid" wrote: > Thanks for the help everyone. I've got it submitted here, hopefully I > followed the procedure properly > > http://trac.sagemath.org/ticket/20595#comment:3 > > Also, sor

[sage-devel] Re: Finding the right place to edit code

2016-05-13 Thread saad khalid
When I try running the doctest, here is the error I am getting: saad@saad-ThinkPad-X201:~/sage$ ./sage -t src/sage/interfaces/maxima_lib.py no stored timings available Running doctests with ID 2016-05-13-11-54-59-7d842524. Git branch: t/20595/setting_besselexpand_to_true_globally Using --optional=

[sage-devel] Re: Finding the right place to edit code

2016-05-13 Thread saad khalid
Thanks for the help everyone. I've got it submitted here, hopefully I followed the procedure properly http://trac.sagemath.org/ticket/20595#comment:3 Also, sorry for this basic question but, when documenting a function, what is the purpose of starting it with r""" ? Is this some python conventi

[sage-devel] Re: Finding the right place to edit code

2016-05-13 Thread saad khalid
Thanks for the help everyone. I've got it submitted here, hopefully I followed the procedure properly http://trac.sagemath.org/ticket/20595#comment:3 -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receivi

[sage-devel] Re: Finding the right place to edit code

2016-05-10 Thread Nils Bruin
On Monday, May 9, 2016 at 9:48:01 PM UTC-7, saad khalid wrote: > > > Another issue is whether this would even be useful at all, to add this > option within sum. I'm assuming there are other situations in which the > bessel function appears as output apart from just the sum function? If > that's

[sage-devel] Re: Finding the right place to edit code

2016-05-10 Thread Andrew
This is in a part of sage that I never use so I am not qualified to comment on what is best usage (and I don't really care:), but changing the default behaviour of a function or method should not really be done without some form of depreciation warning, so you probably should look at `Deprecate

[sage-devel] Re: Finding the right place to edit code

2016-05-09 Thread saad khalid
So, I've set the besselexpand option to true in the init_code of maxima_lib. I was thinking, however, that it would be a good idea to have an easy way to turn besselexpand off, so that those who Want the bessel version of the output can easily get it. This is where I'm running into some issues,

[sage-devel] Re: Finding the right place to edit code

2016-05-09 Thread saad khalid
Thank you for your response! Sorry for replying so late, but I was wondering, what benefit would there be in leaving the bessel function in that form rather than simplifying it? Assuming that setting besselexpand to true(thus simplifying it when it can from bessel to trig functions) doesn't cau

[sage-devel] Re: Finding the right place to edit code

2016-04-30 Thread Nils Bruin
On Saturday, April 30, 2016 at 11:16:21 AM UTC-7, saad khalid wrote: > > > Specifically, I wanted to try and find where the besselexpand option was > in the source code, so that I could make it default to true globally, > instead of false. However, I have no idea where to look to find where this