you might try using the zip command. If you use the * operator with zip it
will unpack the elements into the individual variables
Sys, Dia, Pulse =zip(*mesures)
mesures.append([181,88,58])
Sys[-1],Dia[-1],Pulse[-1]
of course you can use zip to go the other way too:
mesures = zip(Sys, Dia, Pulse)
Wish I could send a patch :), but I'm not that good a python
programmer. I'll try the convert method. Thanks!
On Tue, Jun 1, 2010 at 6:14 PM, Jason Grout wrote:
> On 5/30/10 6:41 PM, Jim Ragsdale wrote:
>>
>> I tried something else that a saw online:
>>
>> in
I tried something else that a saw online:
input:
a=matrix(QQ,2,3,[1,2,3, 4,5,6])
show(a)
output:
looks like what I would expect.
So do NumPy arrays not display like a matrix in the notebook?
On Fri, May 28, 2010 at 5:16 PM, Jim Ragsdale wrote:
> System info:
>
> 'Sage
System info:
'Sage Version 4.4.2, Release Date: 2010-05-19'
Compiled from source on Gentoo Linux.
All,
I am trying to get an array to show show properly in the notebook.
if I execute the following code:
input:
a=np.ones((3,3))
a
output:
array([[ 1., 1., 1.],
[ 1., 1., 1.],
[ 1.