Hello, I have the a recent svn version (1501), and when trying to use the unwrap function it gave me the error transcribed above. In a move to correct the bug to continue my work, I could not found the definition of the mod function. I know that it exists in scipy.mod but was unable to track the function. If someone could help this beginner to simply track a function in scipy, I would be very appreciated. Thanks in advance for your help. Hugo Gamboa The error reported in a ipython session In [13]: scipy.unwrap([1,2,3,4]) --------------------------------------------------------------------------- exceptions.NameError Traceback (most recent call last) /usr/lib/python2.4/site-packages/scipy/base/function_base.py in unwrap(p, discont, axis) 480 slice1 = [slice(None, None)]*nd # full slices 481 slice1[axis] = slice(1, None) --> 482 ddmod = mod(dd+pi, 2*pi)-pi 483 _nx.putmask(ddmod, (ddmod==-pi) & (dd > 0), pi) 484 ph_correct = ddmod - dd; NameError: global name 'mod' is not defined
Hugo Gamboa wrote:
Hello,
I have the a recent svn version (1501), and when trying to use the unwrap function it gave me the error transcribed above.
In a move to correct the bug to continue my work, I could not found the definition of the mod function. I know that it exists in scipy.mod but was unable to track the function.
mod is in umath. Should be present as scipy.mod (scipy.base.umath is the complete module name but you should be fine importing scipy alone): from scipy import mod Thanks for the tests. I've fixed SVN. -Travis
Hi all, I feel kind of stupid but I have just installed python and stuff for scipy and just my 'info' function doesn't work...other functions seems to work but seeing how week is the scipy doc on the web I am worrying... Would anyone have an idea on what's happening? Also, is there any working search among scipy threads...the search mailing list doesn't give me any result even typing smth like 'matrix'... so I went into the archive of each month but that's not handy... Any help would be greatly appreciated, Thanks a lot!!! Eve --- Hugo Gamboa <hgamboa@gmail.com> a écrit :
Hello,
I have the a recent svn version (1501), and when trying to use the unwrap function it gave me the error transcribed above.
In a move to correct the bug to continue my work, I could not found the definition of the mod function. I know that it exists in scipy.mod but was unable to track the function.
If someone could help this beginner to simply track a function in scipy, I would be very appreciated.
Thanks in advance for your help.
Hugo Gamboa
The error reported in a ipython session
In [13]: scipy.unwrap([1,2,3,4])
---------------------------------------------------------------------------
exceptions.NameError Traceback (most recent call last)
/usr/lib/python2.4/site-packages/scipy/base/function_base.py
in unwrap(p, discont, axis) 480 slice1 = [slice(None, None)]*nd # full slices 481 slice1[axis] = slice(1, None) --> 482 ddmod = mod(dd+pi, 2*pi)-pi 483 _nx.putmask(ddmod, (ddmod==-pi) & (dd > 0), pi) 484 ph_correct = ddmod - dd;
NameError: global name 'mod' is not defined
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com
On Dec.30 02h19, Devalière Eve-Marie wrote :
I feel kind of stupid but I have just installed python and stuff for scipy and just my 'info' function doesn't work...other functions seems to work but seeing how week is the scipy doc on the web I am worrying...
Hi, I'm not sure how you use scipy, but there are two cases If you use the command 'import scipy' to import scipy, then the info function will be available as scipy.info On the other hand, if you use the command 'from scipy import *' to import scipy, then info should be available directly. (and if it is not, I don't know what to do..)
Would anyone have an idea on what's happening? Also, is there any working search among scipy threads...the search mailing list doesn't give me any result even typing smth like 'matrix'... so I went into the archive of each month but that's not handy...
I don't really know about scipy's website, but another solution is to use google and enter this in the box when you look for 'matrix': site:www.scipy.org/mailinglists matrix Hope this helped ^^ Evan ps: when you ask a question on the mailing-list you should write an entirely new mail, not just reply to a mail and change the subject ;)
Hi folks! Thanks Evan and Dave! The info for the mailing list helps but I still can't access the info command...so for now I am trying to use numarray instead ... my pythonpath is the following: echo $PYTHONPATH /usr/lib/python2.4:/swan/download/python/SciPy_complete-0.3.2/scipy_core:/usr/include/python2.4/numarray:/usr/lib/python2.4/lib-tk:/swan/download/python/Numeric-24.2:/swan/download/python/Numeric-24.2/Demo:/swan/download/python/SciPy_complete-0.3.2:/swan/download/python/Python-2.4.2 I didn't find any scipy directory under user lib but when I import it it works fine... Am I missing smth? (I had installed scipy core only at first and it wasn't working (well same thing info wasn't wiorking but import was...) so then I installed scipy_complete...without any change... Also, is it worth it to buy the scipy doc? Thanks a lot! Cheers, Eve --- Evan Monroig <evan.monroig@gmail.com> a écrit :
On Dec.30 02h19, Devalière Eve-Marie wrote :
I feel kind of stupid but I have just installed python and stuff for scipy and just my 'info' function doesn't work...other functions seems to work but seeing how week is the scipy doc on the web I am worrying...
Hi,
I'm not sure how you use scipy, but there are two cases
If you use the command 'import scipy' to import scipy, then the info function will be available as scipy.info
On the other hand, if you use the command 'from scipy import *' to import scipy, then info should be available directly. (and if it is not, I don't know what to do..)
Would anyone have an idea on what's happening? Also, is there any working search among scipy threads...the search mailing list doesn't give me any result even typing smth like 'matrix'... so I went into the archive of each month but that's not handy...
I don't really know about scipy's website, but another solution is to use google and enter this in the box when you look for 'matrix':
site:www.scipy.org/mailinglists matrix
Hope this helped ^^
Evan
ps: when you ask a question on the mailing-list you should write an entirely new mail, not just reply to a mail and change the subject ;)
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com
On Fri, Dec 30, 2005 at 02:19:47AM +0100, Devalière Eve-Marie wrote:
Hi all,
I feel kind of stupid but I have just installed python and stuff for scipy and just my 'info' function doesn't work...other functions seems to work but seeing how week is the scipy doc on the web I am worrying... Would anyone have an idea on what's happening? Also, is there any working search among scipy threads...the search mailing list doesn't give me any result even typing smth like 'matrix'... so I went into the archive of each month but that's not handy...
You are right. It would be nice to be able to search at the scipy mailing list site. But, here is another solution -- Go to: http://gmane.org/ Click on "Lists" in the left-hand column. Then search for "scipy". You will find a link to: http://dir.gmane.org/gmane.comp.python.scientific.user That page will enable you to search the scipy-user list. And, you can browse through messages. There are several reader styles: frames/threaded and flat. You may even decide that you prefer to do your list reading there. Hope this helps. Dave [snip] -- Dave Kuhlman http://www.rexx.com/~dkuhlman
Just tried to get rev 1735 svn scipy core going on an Opteron. Non root install of Scipy, site.cfg to use acml libraries for lapack and blas. LD_LIBRARY_PATH includes acml directory. Otherwise default. python setup.py install --home=... seems to work fine. But when I try python
import scipy Importing ScipyTest of testing to scipy Failed to import base cannot import name ccompiler Importing fft of corefft to scipy Importing ifft of corefft to scipy Failed to import random 'module' object has no attribute 'dtypedescr'
Puzzled about ccompiler message, as ccompile.py seems to be in distutils directory, not base subdirectory. George Nurser.
George Nurser wrote:
Just tried to get rev 1735 svn scipy core going on an Opteron.
Non root install of Scipy, site.cfg to use acml libraries for lapack and blas. LD_LIBRARY_PATH includes acml directory.
Otherwise default.
python setup.py install --home=... seems to work fine.
But when I try python
import scipy Importing ScipyTest of testing to scipy Failed to import base cannot import name ccompiler Importing fft of corefft to scipy Importing ifft of corefft to scipy Failed to import random 'module' object has no attribute 'dtypedescr'
Puzzled about ccompiler message, as ccompile.py seems to be in distutils directory, not base subdirectory.
Is this a fresh install on the system or are their older installations. Enough has changed in the package loading that I would delete any old install and the build directory (if you had a previous check-out) and install again. Otherwise, I'm not sure what is going on. -Travis
On 30 Dec 2005, at 22:55, Travis Oliphant wrote:
George Nurser wrote:
Just tried to get rev 1735 svn scipy core going on an Opteron.
Non root install of Scipy, site.cfg to use acml libraries for lapack and blas. LD_LIBRARY_PATH includes acml directory.
Otherwise default.
python setup.py install --home=... seems to work fine.
But when I try python
import scipy Importing ScipyTest of testing to scipy Failed to import base cannot import name ccompiler Importing fft of corefft to scipy Importing ifft of corefft to scipy Failed to import random 'module' object has no attribute 'dtypedescr'
Puzzled about ccompiler message, as ccompile.py seems to be in distutils directory, not base subdirectory.
Is this a fresh install on the system or are their older installations. Enough has changed in the package loading that I would delete any old install and the build directory (if you had a previous check-out) and install again.
Otherwise, I'm not sure what is going on.
-Travis
Problem was that I had prepended the scipy install directory onto my sys.path. Hence it was trying scipy.distutils routines before the python distutils routines. Putting the scipy install directory at the end of sys.path solved the problem. Works fine now. No test failures. -George Nurser.
participants (7)
-
Dave Kuhlman -
Devalière Eve-Marie -
Evan Monroig -
George Nurser -
Hugo Gamboa -
Travis Oliphant -
Travis Oliphant