[Scipy-tickets] [SciPy] #378: scipy.unwrap() not working

SciPy scipy-tickets@scipy....
Thu Feb 22 14:47:56 CST 2007


#378: scipy.unwrap() not working
------------------------------+---------------------------------------------
 Reporter:  MatthewZimmerman  |       Owner:  somebody
     Type:  defect            |      Status:  new     
 Priority:  normal            |   Milestone:          
Component:  Other             |     Version:          
 Severity:  normal            |    Keywords:          
------------------------------+---------------------------------------------
 Hi,

 I've been trying to use scipy.unwrap() function. This appears to not be
 unwrapping about the correct dimension. I have a signal (s) that is
 clearly wrapped, yet s==scipy.unwrap(s)

 Here is my code that does not work as expected:
 {{{
     s = array([-0.88073397],[-2.65546992],[ 2.68060754],[ 1.00883927]])
     su = unwrap(s,0)
 }}}
 nor does this work:
 {{{
     s = array([-0.88073397],[-2.65546992],[ 2.68060754],[ 1.00883927]])
     su = unwrap(s)
 }}}

 I believe know how to "work around this", but I don't think this is a good
 solution in general. The issue, I believe, is that {{{s.shape}}} is (4,1).
 If I reshape it to (4,), unwrap now works. So the following "works"
 here is my code that does not work as expected:
 {{{
     s = array([-0.88073397],[-2.65546992],[ 2.68060754],[ 1.00883927]])
     s.shape=(4,)
     su = unwrap(s)
 }}}

 Does anyone know if I am missing something here, or this a bug?

 thanks
 -Matt

-- 
Ticket URL: <http://projects.scipy.org/scipy/scipy/ticket/378>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list