victorlei / smop

Small Matlab to Python compiler
MIT License
1.08k stars 409 forks source link

How to run smop in my mac #103

Open karinaabrahao opened 7 years ago

karinaabrahao commented 7 years ago

I am not super expert in coding and computer stuff and I am trying as hard as I can to get a simple Matlab code translated to Python. I was able to install everything it is necessary but I am not sure how to finally run the compiler. Could you please give me some hints for s very computer naive person as me... :) Thanks you so much!

RobBW commented 7 years ago

Here are some pages I put together a month ago taken from the program and github website. Hope it helps you, not totally up to date though.

If you want to get a quick result go to the OMPC website [http://ompclib.appspot.com/m2] and try their online version. It doesn’t give the same results as shop but is “quick & dirty" way to get started.

Incidentally, the quickest way to get going with shop is to install it using pip. The version there is almost always up to the minute. Currently v 0.35. Regards Rob

RobBWilkinson@gmail.com

Please note my changed email address

On 4/01/2017, at 11:06, karinaabrahao notifications@github.com wrote:

I am not super expert in coding and computer stuff and I am trying as hard as I can to get a simple Matlab code translated to Python. I was able to install everything it is necessary but I am not sure how to finally run the compiler. Could you please give me some hints for s very computer naive person as me... :) Thanks you so much!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/victorlei/smop/issues/103, or mute the thread https://github.com/notifications/unsubscribe-auth/AGLYJmaAgqRrp6uNb6HyiIp9IWjG326mks5rOsZsgaJpZM4LaFKD.

RobBW commented 7 years ago

Th information at: https://anaconda.org/pypi/smop is clearly set out and gives a use example. It a bit dated though. Regards Rob

RobBWilkinson@gmail.com

Please note my changed email address

On 4/01/2017, at 11:06, karinaabrahao notifications@github.com wrote:

I am not super expert in coding and computer stuff and I am trying as hard as I can to get a simple Matlab code translated to Python. I was able to install everything it is necessary but I am not sure how to finally run the compiler. Could you please give me some hints for s very computer naive person as me... :) Thanks you so much!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/victorlei/smop/issues/103, or mute the thread https://github.com/notifications/unsubscribe-auth/AGLYJmaAgqRrp6uNb6HyiIp9IWjG326mks5rOsZsgaJpZM4LaFKD.

victorlei commented 7 years ago

What is your time Zone?

בתאריך 4 בינו׳ 2017 12:06 AM,‏ "karinaabrahao" notifications@github.com כתב:

I am not super expert in coding and computer stuff and I am trying as hard as I can to get a simple Matlab code translated to Python. I was able to install everything it is necessary but I am not sure how to finally run the compiler. Could you please give me some hints for s very computer naive person as me... :) Thanks you so much!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/victorlei/smop/issues/103, or mute the thread https://github.com/notifications/unsubscribe-auth/AEhsG8anBhkbxgr6H4tHOmsUpFfXM8KPks5rOsZsgaJpZM4LaFKD .

karinaabrahao commented 7 years ago

I installed Anaconda and I also did the pip installation of smop. It seems to be in my computer. My question is how to run smop after installation. I have terminal (mac) open and I can see smop is installed but I do not know what to do from now on.

Victor I am in USA East time zone.

Thanks

karinaabrahao commented 7 years ago

Ok, I unistall and I install again using the Anaconda explanation. However, I do not understand what I should type to convert a file. If I use the follow code it gives me only errors and I assume this is to run smop online? Not sure! $ tar zxvf smop-0.25.4.tar.gz $ cd smop-0.25.4/smop $ python main.py solver.m $ python go.py After this code the Anaconda website gives me the comparison between the Matlab and the Python code but I am not even there. I was not able to create any python code. One issue could be: I do not have matlab in my computer. I got the matlab code from a friend.

I hope this clarify a bit my problems.

Thanks again!

karinaabrahao commented 7 years ago

I got it... :) It worked... Now I have another issue. The program I am try to convert is for a graph, so I assume I have to import numpy and matplotlib, right?

victorlei commented 7 years ago

Guys, I am obviously misunderstood, SMOP is not and never was intended to replace MATLAB. If that's what you are trying to achieve, you are on the wrong track. Use OCTAVE or R instead

ROBBI123 commented 5 years ago

how to run smop software in windows