Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
The community reviewed whether to reopen this question 1 year ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I have been searching and found many libraries (scipy, numpy, matplotlib) for Python that lets a user easily shift from MATLAB to Python. However, I am unable to find any library that is related to the Simulink in MATLAB. I would like to know if such a library exists or something else that resembles Simulink in it's GUI and computation features.
SimuPy is a farily recent framework has similar features as simulink. There is a SciPy 2018 presenation on it.
Until now there is no library like Simulink in Python. The closest match is the Modelica language with OpenModelica and a python implementation JModelica.
Recently I did a quick test with Xcos/Scilab following a tutorial from YT. I was very positively impressed with how good it looks and how easy and intuitive it was for me to use it, since it has been more than 20 years since I last used Simulink in University. (Note that I have never been an advanced user).
Even though the syntax of Scilab is similar to MATLAB (and like Python, quite readable and easy to understand) it even includes a translation tool to convert code from MatLab. (But I haven't tested it)
So, in summary, if all you need is a tool to simulate some engineering problem, I think you should give Scilab/Xcos a try.
Python is a great tool, but it is not the only one!
(You should always pick the "best tool for the problem", not the other way around.
And apparently, "Scilab is able to interact with any code written in Python thanks to its PIMS module." | From: https://wiki.scilab.org/Interoperability )
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I want to ask about the best IDE to prototype programs by using OpenCV library.
I’ve been programming with Halcon for 3 years and I would like to learn how to program with OpenCV too. I was thinking about reproducing some old programs that I have created with Halcon, but instead using OpenCV. The problem is that maybe I’m not using the correct IDE (I’m programming with Python using Spyder) or maybe programming with OpenCV is slower than I have expected (I don't discard the possibility that I don’t know the appropriate way to prototype properly by using these tools).
I already know I come from an expensive program that allows me to work with many comforts, but I miss having a window where I can display dynamically the results of the operations than I’m applying. Also, draw some ROIs quickly. Anyways, do you think I’m using the right tools? Do you know some tutorials from which I can learn how to prototype quickly using that IDE?
Thank you in advance!
My suggestion for OpenCV prototyping in a GUI is a program called GRIP (Graphically Represented Image Pipeline). You can download it from GitHub.
It supports many inputs: single image, multiple images, webcam, and even HTTP cameras. You get all the key OpenCV commands, along with some custom ones developed by WPI.
You develop your image processing flow as a pipeline, with filtering blocks such as desaturate, find contours, etc. in which you string the output from one block to the input of another (or multiple). You can then export the pipeline to Python, Java, or C++ (exported as a usable class with a key process function). If you want to see an example, feel free to check out this previous post I wrote!
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I'm new on the programming world using python, so i have some questions for desktop aplications development.
1. Im currently using pycharm as my idle, can i use it for my purpose?
2. Can i use peewee as my ORM and Tkinter for my GUI? or should i just use Tkinter?(Recommendations are welcome)
3. I'm planning to use Sqlite3 as my database, should i keep this idea?
My further plan is to make an application to store the networks equipments in an enterprise, like desktops, laptops, switches, etc.
And also get some reports like to wich user belongs a desktop or laptop, wich kind of license does the equip has, a bitacore to store all what happens to an equip, etc.
I'm very new on this world and have been reading, practicing and taking courses for 3 month by now to understand concepts, learn about programming, etc.
Tahnks for the tips.
If you know Tkinter then stick with it, otherwise consider a higher level framework like PyGUI, PySimpleGUI or QT (Arguably not that simple, but plays nicely with PyInstaller). You will definitely be able to keep using SQLite3, as there is an existing binding in python 2&3.
If you plan to deploy this app, then you need to consider if speed is going to be a problem. Python is great but fundamentally quite slow. You can use things like Cython or PyPy to speed it up, but this can get complicated when you look at using a packager such as py2exe or PyInstaller for distribution.
best of luck.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am a graduate student starting to do research in Mathematical Optimization. I have a code for my algorithm in MATLAB (using object-oriented programming) that I want to translate into Python because I feel it'll be a much better language to work with for large-scale data. I am fairly comfortable with MATLAB and C.
My questions are:
1) what would be a good resource to start learning? I want to be able to translate my current code into Python, and the only 'specialized' function I'm using is norm().
2) Is there a recommended editor? I am on Linux Mint.
Thank you.
I would not use Eclipse if you are coming from a scientific background using Matlab, consider using Anaconda, you will need to decide between 2.7 & 3.5 versions.
Both are very, very good. And as far as a great source for learning about programming in Python. Try the Coursera courses online through University of Michigan taught by Charles Severence.
It walks you through a myriad of techniques to manipulate data and build thoughtful python code. the best part is the audit (which is free) allows you to fully participate in the course, including coding samples.
Honestly, I learned simply taking the Code Academy Python Course and by printing out a few cheat sheets then just doing it.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 months ago.
Improve this question
I have to implement a bioinformatics algorithm on Java over cloud. I have been given Python code for the same. I know Java and Hadoop quite well;
However, I have no knowledge in Python. I am looking for a tool so I can analyze the Python code, understand the algorithm and prepare a pseudo code for implementing it in Java. I already looked for some dependency analyzer; however, it didn't help much.
Is my approach wrong? Do I have to learn Python to do this task?
I am willing to work hard on this project, I need the direction. How should I approach this problem?
If you want to understand a program written in python, you should learn python. This will probably be the easiest way, if there is no other description of the algorithm.
Python is a very easy language to learn, plus you barely will have to learn much to just read an algorithm. Python reads like pseudocode.
The trick is, which version of Python to learn? There are two major versions: Python 2 and Python 3. Code written for Python 2 will probably not run in Python 3 and vice versa. So figure out which one you're dealing with first. Probably the best way to find out is ask the person you got the Python code from.
The official Python tutorials are pretty easy to follow, and I'd recommend you start with those.
Python 2: http://docs.python.org/tutorial/
Python 3: http://docs.python.org/py3k/tutorial/
Don't worry about learning a new language. Python is very easy to learn, and you only need to learn a small part of it. I learned almost all the syntax in an evening.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am in need of making an interface for Automata Construction. For those who are unaware of what an automata is, I basically need circles and arrows, extending them on the user interface and then various text to describe it. For example :- http://en.wikipedia.org/wiki/File:DFAexample.svg
I was wondering if there is any advanced library in Python which could let me do all of this. Please give me suggestions. I plan to use lots of internal frames and showing parsing of strings diagramatically . I had planned to use jython to use the swing libraries but I would like to know if there any other suggestions that I can use.
I've used PyQt4 to produce something like this:
http://doc.qt.nokia.com/4.6/graphicsview-diagramscene.html
which is the C++ version. Draw boxes, draw arrows, drag them around and so forth. Actually I think I pretty much ported the C++ version line-by-line to Python. Or someone else did.
PySide (Qt), WxPython, PyGtk
I looked at your picture and have another one idea - you can use graphviz and pydot.