Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run multiple times the code with diferent input #16

Open
TheDammedSon opened this issue Sep 30, 2022 · 2 comments
Open

Run multiple times the code with diferent input #16

TheDammedSon opened this issue Sep 30, 2022 · 2 comments

Comments

@TheDammedSon
Copy link

Hello Emad

First of all, thank you for this code, it has been a great help in my work.

I was wondering how can I run the code several times with different input to get multiple results, when I close the plot I have to run the code again.

I've changed the code in order select a input file via "tkinter.filedialog" the missing part is to run the solver several times

Thank you

@emadehsan
Copy link
Owner

Hi @TheDammedSon ,

I guess what you want can be achieved with a simple approach of surrounding the main function in an infinite loop (while True:)? Probably add an input prompt that waits for user input before running next time?

@TheDammedSon
Copy link
Author

Hi @emadehsan

A input prompt that waits for user input looks good, but some times the calculations take a bit longer.

I've used pyautogui and when I press a specific key it runs a next time.

The problem here is I don't know where I put the infinite loop, is the main function you mention the def main():?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants