[casetta] It **almost** works (sending matrices) !

[ Thread Index | Date Index | More lists.tuxfamily.org/casetta Archives ]


Hello,

Last mail ! I promise. You can actually send matrices (if you accept the receive error from the calc) : It works but there are errors :-) hum hum hum. :-).
It almost works and it is almost bugfree !

You have to manually set the dimensions of the matrix (see examples in attachments).

Just about the english (yes I am a maniac of spelling mistakes) :
fr : un calcul (en maths) -> en : a calculation
fr : une légende, pour une carte, un schéma -> en : a caption (That's for the feature matrix).

cheers
--
Fabien ANDRE aka Xion345
Linux User #418689 -- fabien.andre.g@xxxxxxxxxx -- xion345@xxxxxxxxxxxxx
Note that nobody reads every post in linux-kernel. In fact, nobody who expects to have time left over to actually do any real kernel work will read even half. Except Alan Cox, but he's actually not human, but about a thousand gnomes working in under-ground caves in Swansea. None of the individual gnomes read all the postings either, they just work together really well. ( Linus Torvalds, 2000 )
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import casetta

connect = casetta.devices_serial.Connexion()

mat=casetta.data.Matrix()
mat.set_val([[1,2,3],[4,5,6]])
mat.name='Mat C'
mat.dimensions=(2,3)
while not connect.calc_is_ready_to_receive():
    pass
connect.send_data(mat)


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/