-
Notifications
You must be signed in to change notification settings - Fork 2
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
Issues with the run_simulation.py script #10
Comments
The main goal of the run_simulatio.py script is to allow the user to run a single simulation based on a simu_config.json file in command line (without the pylbm_ui graphical interface). That functionality add flexibility to the proposed toolset, especially for advanced users used to run simulation on super-computers or to develop advanced shell scripts or chain of codes. In the framework of the LBMHYPE ESA project, the main target of the run_simulatio.py script is to allows for the coupling of pylbm_ui with the Minamo software to access the advanced data analysis functionalities of the Cenaero software. The coupling method provided by Minamo as depicted in the theory manual is: Basically, as the PS functionality provided in pylbm_ui, Minamo will create a list of sample point (DoE) with different values of the design space parameters. To evaluate the responses for all the points, Minamo will interact in command line with a simulation script, in the present case: run_simulatio.py which need to have the following functionalities:
As an example, in the LBMHYPE prototype, the following command line is used for Minamo evaluation:
I hope this is explain the expected functionalities of run_simulatio.py in a clear manner.... |
status of version 54bee2b the new script "scripts/run_parametric.py" seems to fulfill most of the requirements for the Minamo coupling, excepted:
I will initiate the implementation of the Minamo coupling from that script. |
Different errors are obtained depending on the executing directory:
from the pylbm_ui/Outputs directory, try the command: python ../../scripts/run_simulation.py ../simu_0/simu_config.json
leads to the following error:
Traceback (most recent call last):
File "../../scripts/run_simulation.py", line 10, in
from pylbm_ui.simulation import simulation
ModuleNotFoundError: No module named 'pylbm_ui'
from the pylbm_ui/scripts directory, try the command: python run_simulation.py ../Outputs/simu_0/simu_config.json
leads to the following error:
Traceback (most recent call last):
File "run_simulation.py", line 10, in
from pylbm_ui.simulation import simulation
File "../pylbm_ui/simulation.py", line 21, in
from .widgets.pylbmwidget import out
File "../pylbm_ui/widgets/init.py", line 11, in
from .simulation import SimulationWidget
File "../pylbm_ui/widgets/simulation.py", line 18, in
from ..simulation import simulation, Plot
ImportError: cannot import name 'simulation' from partially initialized module 'pylbm_ui.simulation' (most likely due to a circular import) (../pylbm_ui/simulation.py)
The text was updated successfully, but these errors were encountered: