Re: problem loading matlab data with ompc and python

2012-05-24 Thread no1
On Thursday, May 24, 2012 5:06:41 AM UTC-7, Tim Williams wrote:
 On May 23, 5:10 pm, no1 no1.w...@gmail.com wrote:
  Hi, we're investigating transitioning our company from matlab to python. We 
  found OMPC as a MATLAB m-file-to Python translator, but we're encountering 
  a problem using the translated code to import MATLAB data structures into 
  Python. For example, when we save data within MATLAB this way:
 
  x.a = 5;
  x.b = 6;
  save -v6 test x
 
  this saves data in test.mat, with MATLAB version 6 compatibility (OMPC says 
  it's not compatible with the latest versions of MATLAB). The code to read 
  in data in MATLAB is just
 
  load test
 
  and when we run it through OMPC we get
 
  load(mstring('test.mat'))
 
  but when we run it we get the error message
 
  File ompclib\ompclib_numpy.py, line 1496, in load
  KeyError: [('a', '|O4'), ('b', '|O4')]
 
  Reading in simpler data (up to arrays) does not have this problem.
 
  To get other people in the company to transition, we were hoping that the 
  translation process could be done in one step or on the fly. We could read 
  in MATLAB data using I/O functions imported from scipy, but then the 
  transition isn't seamless any more.
 
  Is there a simple fix to using OMPC? Or a similar alternative that would 
  work better?
 
  Thanks
 
 Have you tried using loadmat from the scipy.io module?
 
 http://docs.scipy.org/doc/scipy/reference/io.html

Yes (I mentioned the scipi I/O module near the end of my original post) but we 
were hoping not to have to require the users to learn any Python to start. The 
simpler the process, the less resistance to using the new Python methodology; 
we were hoping the use of a single black box like translator (OMPC) would be 
enough. We'd really like to avoid any additional steps for the user, like 
rewriting code, otherwise the users are going to resist the transition.
-- 
http://mail.python.org/mailman/listinfo/python-list


problem loading matlab data with ompc and python

2012-05-23 Thread no1
Hi, we're investigating transitioning our company from matlab to python. We 
found OMPC as a MATLAB m-file-to Python translator, but we're encountering a 
problem using the translated code to import MATLAB data structures into Python. 
For example, when we save data within MATLAB this way:

x.a = 5;
x.b = 6;
save -v6 test x

this saves data in test.mat, with MATLAB version 6 compatibility (OMPC says 
it's not compatible with the latest versions of MATLAB). The code to read in 
data in MATLAB is just

load test

and when we run it through OMPC we get 

load(mstring('test.mat'))

but when we run it we get the error message

File ompclib\ompclib_numpy.py, line 1496, in load
KeyError: [('a', '|O4'), ('b', '|O4')]

Reading in simpler data (up to arrays) does not have this problem.

To get other people in the company to transition, we were hoping that the 
translation process could be done in one step or on the fly. We could read in 
MATLAB data using I/O functions imported from scipy, but then the transition 
isn't seamless any more.

Is there a simple fix to using OMPC? Or a similar alternative that would work 
better?

Thanks
-- 
http://mail.python.org/mailman/listinfo/python-list


a revolutionary principle please read that

2007-11-07 Thread No1
With Agloco you can earn in future properly money, the principle is
new! earlier you beginst so much the better are your chances. the
great in it is: in every person you mediate you earn and even from
those them again your provided mediate, this about 5 levels. The
principle is easy and efficient. if you are announced you can instal a
surfbar (however, do not have to do, however, recommendable there it
so quick money gives!). the surfbar does not interfere and is very
small like a small task strip. On this always small text
advertisements are faded in this surfbar to you then for which you are
paid so long if you the surfbar actively holds. You must click no
advertisement only the task bar allow to run (surfbar). Some users
already earn gigantic sums with up to 40,000 users and more in
unterlevels. So does not wait separate start now with it. The whole
one finances itself with the advertisement Is faded in. Many companies
use this new advertisement-princip then this brings many advantages,
one can appeal exactly to the customer group which one would also
want, companies spend every year milliards on advertisement on the
Internet. Even 90% of the money which Agloco aearn of the companies
will be transmitted to the user how using the surfbar. The
registration is for free! You can only win losing nothing! Advertise
with your friends and find partners.

Announce yourselves even today and begin your career: Here Announce

xx

 www.agloco.com/r/BBHK6764

xx

What can you earn? Example:

 You become a partner and search 5 other partners these partners 3
other partners everybody win in each case surfs per month 5 hours
(what he does anyway) (Accepted every surfed hour it is calculated on
1 $)

Then you earn per month  761.25 $

(calculated more than 5 levels)

This does, e.g., with 10 partners  1,522.50 $
or, e.g., with 20 partners  3,045.00 $

Also something or a lot is possible more!!

Announce yourselves even today and begin your career: Here Announce:

 www.agloco.com/r/BBHK6764

-- 
http://mail.python.org/mailman/listinfo/python-list