[SciPy-Dev] First contact
Wed Aug 11 10:02:59 CDT 2010
welcome to the list!
> The first problem was related with the function "ss2tf" which gives
> as return
> numerator a 2 dimensional array, not more usable by the print
> function of the
> class. I added these lines at the end of the function:
> # Avoid leading zeros in num
> while num==0:
> but I don't want to get problems with other modules...
I must admit I have no idea what this output is typically supposed to
but I note that in the first step you are already replacing a 2D-array
with its first
1D-element, which is probably not desired if you have input with
D.shape > 1.
The print function of which class are you referring to BTW?
For the second part, you could replace the "while" loop with a numpy
num = num[num.nonzero():]
More information about the SciPy-Dev