Home » Community » Newbie corner » U++ and Python
|
Re: U++ and Python [message #60587 is a reply to message #60586] |
Thu, 23 May 2024 08:31   |
 |
koldo
Messages: 3432 Registered: August 2008
|
Senior Veteran |
|
|
Hello Luigi
From U++ to Python is easier, but from Python to U++...
So far I haven't had the need, but at some point I have thought about what you say, if the application supports it, U++ generates some files and calls a Python binary. This opens the files, does the jobs, and generates other files that U++ uses later. I know this is not very brilliant, but in some situations it can save the day.
Of course, if the script is not relatively large, you can convert it relying on ChatGPT. It's not perfect, you'll have to check everything, the code won't be brilliant, but it will take a lot of work off your hands. ChatGPT knows a lot about U++. If you use matrix algebra, you can also tell it to use Eigen as well.
Best regards
IƱaki
[Updated on: Thu, 23 May 2024 08:33] Report message to a moderator
|
|
|
Re: U++ and Python [message #60591 is a reply to message #60587] |
Fri, 24 May 2024 17:58  |
 |
forlano
Messages: 1207 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
koldo wrote on Thu, 23 May 2024 08:31Hello Luigi
So far I haven't had the need, but at some point I have thought about what you say, if the application supports it, U++ generates some files and calls a Python binary. This opens the files, does the jobs, and generates other files that U++ uses later. I know this is not very brilliant, but in some situations it can save the day.
Hi Koldo,
this is the solution (a). I am moving in this direction as the easiest.
Luckily Pyinstaller produces exe from script.
Best regars,
Luigi
|
|
|
Goto Forum:
Current Time: Mon Apr 28 15:27:38 CEST 2025
Total time taken to generate the page: 0.01077 seconds
|