Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 25 22:51
    oscarbenjamin labeled #21777
  • Jul 25 22:50
    oscarbenjamin labeled #21778
  • Jul 25 22:47
    oscarbenjamin labeled #21779
  • Jul 25 22:46

    oscarbenjamin on master

    Fixes issue 17804 by dropping t… Merge pull request #21780 from … (compare)

  • Jul 25 22:46
    oscarbenjamin closed #17804
  • Jul 25 22:46
    oscarbenjamin closed #21780
  • Jul 25 22:46
    oscarbenjamin commented #21780
  • Jul 25 22:46
    oscarbenjamin labeled #21780
  • Jul 25 21:21
    github-actions[bot] commented #21769
  • Jul 25 20:27
    oscarbenjamin commented #21703
  • Jul 25 20:12
    redeboer commented #21769
  • Jul 25 20:06
    redeboer synchronize #21769
  • Jul 25 19:39
    github-actions[bot] commented #21780
  • Jul 25 19:16
    redeboer commented #21769
  • Jul 25 19:15
    sympy-bot commented #21769
  • Jul 25 19:15
    redeboer edited #21769
  • Jul 25 19:13
    redeboer synchronize #21769
  • Jul 25 18:58
    sympy-bot commented #21737
  • Jul 25 18:58
    naveensaigit synchronize #21737
  • Jul 25 18:27
    0sidharth edited #21775
Ashwin Shenoy
@Ultra-Instinct-05
It's a bit unclear in the docstring. I take it they are being represented as radius vectors from the origin along the major & minor axis ?
Akshit Srivastava
@akshitt
Hi I am Akshit, fresher in CS at Indian Institute of Technology, Bombay. Could someone guide me to a basic level bug to start with?
I have some basic level knowledge in Python, FLINT, NumPy
Het Patel
@hetp111
@akshit1511 Hi, i am also new, i'll tell you what i'll be doing to get started, first of all i'll learn to use git and github and then https://github.com/sympy/sympy/wiki has a lot of information on how to start
@akshit1511 Tell me if i am missing something.
Akshit Srivastava
@akshitt
@hetp111 try reading this instead http://try.github.io/
Het Patel
@hetp111
@akshit1511 I'll try. Thanks!
Yatna Verma
@yatna
Printing latex(pi) yields to \\pi whereas the correct representation in LaTex should be just \pi , is the extra '\' a bug or requirement?
Sidhant Nagpal
@sidhantnagpal
"\\pi" is correct. \\ is used to escape \.
Yatna Verma
@yatna
okay, thanks
Kalevi Suominen
@jksuom
'\\pi' is the representation of the (internal) Python string created by latex(pi). You can use print(latex(pi)) to see how the output will appear in the LaTeX source.
Divyam Sharma
@divyam102
what level of python is required in order to contribute for sympy?
Bjorn
@bjodah

I'm trying to hunt down where in my code I'm using a now deprecated sympy function. I'm using pytest & python 3.7 and I'm looking at the python docs. This should work, but I can't seem to make it trigger:

$ PYTHONWARNINGS='ignore,error:::sympy' PYTHON=python3.7 PYTHONPATH=~/vc/sympy ./scripts/run_tests.sh chempy/util/pyutil.py
==== 6 passed, 1 skipped in 0.53 seconds ====
/home/bjorn/vc/sympy/sympy/matrices/matrices.py:2491: SymPyDeprecationWarning: 

Dot product of non row/column vectors has been deprecated since SymPy
1.2. Use * to take matrix products instead. See
https://github.com/sympy/sympy/issues/13815 for more info.

  useinstead="* to take matrix products").warn()

if I change the PYTHONWARNINGS environment variable to simply error::DeprecationWarning it triggers way before actually running the tests:

Traceback (most recent call last):
...
  File "/opt/py37/lib/python3.7/site-packages/_pytest/assertion/rewrite.py", line 6, in <module>
    import imp
  File "/opt/py37/lib/python3.7/imp.py", line 33, in <module>
    DeprecationWarning, stacklevel=2)
DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses

does anyone know the proper syntax to specifically turn SymPy warnings into errors?

(I also tried PYTHONWARNINGS='ignore,error::DeprecationWarning:sympy' and a few other combinations to no avail)
Aaron Meurer
@asmeurer
I think use SymPyDeprecationWarning instead of DeprecationWarning
Bjorn
@bjodah
Thanks, tried that too, it spits out Invalid -W option ignored: unknown warning category: 'SymPyDeprecationWarning' and tests still pass.
Aaron Meurer
@asmeurer
Really it has to be a known category?
Bjorn
@bjodah
Looks like it, also tried:
PYTHONWARNINGS='error:::sympy[.*]'
PYTHONWARNINGS='error::DeprecationWarning:sympy[.*]'
Aaron Meurer
@asmeurer
Well warnings.filterwarnings should work. I think we use that in SymPy itself
I guess you'll have to use that and run the tests from within Python.
Ok apparently you have to specify warnings from external modules with a module name, like sympy.SymPyDeprecationWarning
But it looks like it doesn't work because you have to import it from sympy.utilities.exceptions.
And -W"error::sympy.utilities.exceptions.SymPyDeprecationWarning" gives Invalid -W option ignored: invalid module name: 'sympy.utilities.exceptions'
Maybe I'm doing it wrong.
Bjorn
@bjodah
Don't know, to me it looks right (but this is all new to me, hence me asking here). I'll use filterwarnings (or just edit matrix.py for a sec to throw). Would've been nice if this worked.
Aaron Meurer
@asmeurer
I don't know. Based on the code from https://github.com/python/cpython/blob/3.7/Lib/warnings.py#L239, -W"error::sympy.utilities.exceptions.SymPyDeprecationWarning" should work
Does it work for you?
Bjorn
@bjodah
No, I can't get it to trigger. Unsure if py.test might have something to do with it though
Aaron Meurer
@asmeurer
You can open an issue about it. I think at the very least we should move SymPyDeprecationWarning into __init__.py.
Bjorn
@bjodah
submitted #15130
Ashwin Shenoy
@Ultra-Instinct-05
Hello, everyone ! I was going through the workflow & came across the guidelines for writing commit messages. sympy/sympy@bf0e81e
Is it really necessary to write an example for the commit message ?
I understand the description is important.
Ashwin Shenoy
@Ultra-Instinct-05
Also, for the evolute of an ellipse, I can't see any test case added. Do the methods returning a sympy expression don't need a test case ?
Ayushman Koul
@ayushmankoul
Hello everyone.My name is Ayushman Koul and I am a 3rd year student studying Computer Engineering at GCET Jammu. I wish to participate in GSOC 2019 through Sympy and contribute to the community as much as I can.@hetp111 From my personal experience I would suggest you to take https://in.udacity.com/course/how-to-use-git-and-github--ud775-india course to have better understanding .
Ayushman Koul
@ayushmankoul
@asmeurer Sir I am interested in working on this project idea Please provide me the guidance how should I proceed further on this project.
Kalevi Suominen
@jksuom
@ayushmankoul It seems to me that the project idea text is outdated. Most of it has already been implemented in the factortools module except what is suggested in the last sentence: "You can go further and extend...". Algorithms for that part may not be easily available in the literature, if at all.
Ayushman Koul
@ayushmankoul
@jksuom Thank You sir for responding.When will be the GSoC ideas page be updated since some projects may have been completed during this year GSoC ?
Kalevi Suominen
@jksuom
The ideas page should be updated after some work has been done but it is often forgotten. That is voluntary work that could be done by anyone, there is no fixed timetable. If you are unsure about the status of a GSoC idea, it is probably best to ask questions here.
francesco
@cescor80_twitter
Hi, I'm trying to solve a nonlinear symbolic equation, but sympy-1.2 gets stuck (it has been running for half an hour now). The code is:
from sympy import
A,B,X,Y=symbols('A B X Y')
eq1=(B
X - 1/(BX))/(A + BX + 1/(BX)) + (-BY + 1/(BY))/(A + BY + 1/(BY))
eq2=(B
Y - 1/(BY))/(A + BY + 1/(BY)) + (-B/(XY) + XY/B)/(A + B/(XY) + X*Y/B)
nonlinsolve([Eq(eq1), Eq(eq2)], [X, Y])
Any idea?
Ethan Ward
@ethankward
@cescor80_twitter do you actually need a symbolic solution? nsolve seems to work very well here
Ethan Ward
@ethankward
(given specific values for A and B)
Ayushman Koul
@ayushmankoul
@jksuom Sure sir and Thank You for responding to my question.I was working on this sympy/sympy#15117 and struck into assertion error while enclosing every base in {} as asked by mentor.Can anyone please help me in figuring out this ?
Kalevi Suominen
@jksuom
I think that an extra pair of braces will do no harm in LaTeX. You could edit the asserted lines to conform to the new output (by adding { and } in suitable places).
Ayushman Koul
@ayushmankoul
I will give it another try if I face any issue will let you know.Thank You sir @jksuom
V Gladkova
@valglad
Got a strange error in this build. In Python 2.7 and 3.6 insympy/printing/tests/test_theanocode.py[27] the error is
"""
/home/travis/miniconda/envs/test-environment/lib/python3.6/site-packages/theano/gof/opt.py:251: UserWarning: WARNING: Supervisor is not added. Please build a FunctionGraphvia theano.compile.function_module.std_graph()or add the Supervisor class manually.
sub_prof = optimizer.optimize(fgraph)
"""
Is this just a Travis thing?
Bjorn
@bjodah
I think the warning is real and it indicates that the Theano-code generated by SymPy is not optimal (or even correct?). Maybe worth making an issue for it (then again, Theano is no longer actively developed).
V Gladkova
@valglad
I'll open an issue then