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

Execution of prepare_gas_network not regulated by __main__ #300

Open
davide-f opened this issue Mar 6, 2024 · 0 comments
Open

Execution of prepare_gas_network not regulated by __main__ #300

davide-f opened this issue Mar 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@davide-f
Copy link
Member

davide-f commented Mar 6, 2024

Describe the feature you'd like to see

The execution of the script of prepare_gas_network does not occur using the typical main, but it is executed at import.
Usually we desire something like:

if __name__ == "__main__":
   call_func_do_stuff()

but in our case it is a mix:

if __name__ == "__main__":
   something()

call_func_do_lots_of_stuff()

That can be difficult to maintain

@davide-f davide-f added the enhancement New feature or request label Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant