Comment #11 on issue 2006 by [email protected]: Make all expressions recursively callable
http://code.google.com/p/sympy/issues/detail?id=2006

The issue with that is like I said at the end of comment 5 (the a = ..., b = ... part). Sometimes things will be callable and sometimes they won't, and it will be easy to go from things that are to something that isn't. As you said, you'd have to catch the error. At that point, you might as well just use the helper function directly.

It looks like there are test failures outside of diffgeom. My guess is that the series one is a typo/bug of some sort. I'm not sure what's going on in the quantum module.

________________________________________________ sympy/physics/quantum/tests/test_density.py:test_eval_trace _________________________________________________ File "/users/aaronmeurer/documents/python/sympy/sympy/sympy/physics/quantum/tests/test_density.py", line 208, in test_eval_trace
    assert d.doit() == (0.5 * OuterProduct(k1, k1.dual()) +
TypeError: 'TimeDepBra' object is not callable
______________________________________________________________________________________________________________________________________________________________
__________________________________________________ sympy/physics/quantum/tests/test_sho1d.py:test_RaisingOp __________________________________________________ File "/users/aaronmeurer/documents/python/sympy/sympy/sympy/physics/quantum/tests/test_sho1d.py", line 51, in test_RaisingOp
    assert ad().rewrite('xp').doit() == \
TypeError: 'RaisingOp' object is not callable
______________________________________________________________________________________________________________________________________________________________
_________________________________________________ sympy/physics/quantum/tests/test_sho1d.py:test_LoweringOp __________________________________________________ File "/users/aaronmeurer/documents/python/sympy/sympy/sympy/physics/quantum/tests/test_sho1d.py", line 85, in test_LoweringOp
    assert a().rewrite('xp').doit() == \
TypeError: 'LoweringOp' object is not callable
______________________________________________________________________________________________________________________________________________________________
__________________________________________________ sympy/physics/quantum/tests/test_sho1d.py:test_NumberOp ___________________________________________________ File "/users/aaronmeurer/documents/python/sympy/sympy/sympy/physics/quantum/tests/test_sho1d.py", line 95, in test_NumberOp
    assert N().rewrite('a').doit() == ad*a
TypeError: 'NumberOp' object is not callable
______________________________________________________________________________________________________________________________________________________________
_________________________________________________ sympy/physics/quantum/tests/test_sho1d.py:test_Hamiltonian _________________________________________________ File "/users/aaronmeurer/documents/python/sympy/sympy/sympy/physics/quantum/tests/test_sho1d.py", line 106, in test_Hamiltonian assert H().rewrite('a').doit() == hbar*omega*(ad*a + Integer(1)/Integer(2))
TypeError: 'Hamiltonian' object is not callable
______________________________________________________________________________________________________________________________________________________________
______________________________________________________ sympy/series/tests/test_series.py:test_sin_power ______________________________________________________ File "/users/aaronmeurer/documents/python/sympy/sympy/sympy/series/tests/test_series.py", line 113, in test_sin_power
    assert calculate_series(e, x) == x**1.2
  File "sympy/series/gruntz.py", line 522, in calculate_series
    series = e.nseries(x, n=n, logx=logx)
  File "sympy/core/expr.py", line 2483, in nseries
    return self._eval_nseries(x, n=n, logx=logx)
  File "sympy/core/power.py", line 945, in _eval_nseries
    arg = arg.expr()
TypeError: 'Pow' object is not callable


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to