General > General Questions

Monte Carlo (OpenSeespy)

<< < (2/3) > >>

Sang-ri:
Hi

Thanks much for sharing the input files. It was very helpful. The following was needed for me to make it run on quoFEM

1. Uncomment the last three lines
Those look like the correct way of writing results.out for the maximum load.

2. Change the python path to your own system python path
Currently, the Windows version of quoFEM is distributed with its own python exe (v3.8) and OpenSeesPy (v3.3.0.1). But I think some of your functions only work with OpenSeesPy v3.4, which requires python v3.9. To solve this issue, you can make quoFEM use your system python exe instead the default one. To do this, go to file-preferences and check 'custom python' and change the path to the system python path (You can find the system python path by typing 'where.exe python' on the command prompt). Also, to make sure all the SimCenter dependencies are installed in this python exe, do 'pip install nheri_simcenter --upgrade'

3. Comment out IPython and matplotlib
I commented out the lines related to IPython and plt.show(). When I tested the input script (by typing 'python Benchmarked_Rectangular_Encased_column_quoFEM.py'), these parts were blocking the analysis.

4. Created params.py file
I picked up the following lines from the main script and moved them to params.py

* hp=280 #height of the profile
* bp=280 #width of the profile
* fy=426 #profile yield
* Ey=210000 #profile E modul
Please do #2 and then try running the analysis with the attached scripts (to have #1,#2, and #4) and let us know how it goes!

Sang-ri

pellumbz:
Hi again
I think my issue is with versions you are right.
I changed inside file preference and I putted the path from one I found in command prompt but now I'm getting another type of error:
it shows:
An error occurred in the Python script, the exit code is 9009
Analysis complete with errors
Filed to run the workflow

Can you please tell me how did you make it run? What version are you using since you got the results that I need!
I had similar problem also when I was running my script in spyder, and the only way to make it work is If I let the version as you can seen in attachment, otherwise was not working.
SO, since it run in your case I would try to adopt the same versions with you maybe it will work than also for me.
Thank you very much for helping me!
Best regards,

pellumbz:
Hi again

When I'm checking the path in command prompt it shows me this one for python: C:\Users\pellumb.zogu\AppData\Local\Microsoft\WindowsApps\python.exe
But, when I go from quoFEM in this path I can't choose this path it shows me this error (please see the attachment).

BR.

Sang-ri:
This is indeed an interesting issue, and your feedback here is very helpful for us. We greatly appreciate it.

1. "File cannot be accessed" error
I think the python.exe in the WindowsApps folder is not a python executable (what we wanted), but a python installer. You can just ignore it or get rid of it by turning off the 'App installer (python.exe)' button in the Manage app execution aliases.

If you got only this path from the command prompt, that means you do not have a system default python executable, which is perfectly fine.

2. Finding the python.exe path that jupyter notebook (or spyder) uses
So instead of the system python path, we want to grab the path to python.exe that is used in the jupyter notebook - such that we know it works with your model (I presume you used jupyter notebook to develop and test the model). To get this path, you can use the following command in the jupyter notebook

import sys
sys.executable

which will show you the python exe that is currently running. Then please change the quoFEM python path to what is shows.

3. The version that worked for me
I had python 3.9.8 installed on my windows laptop which I downloaded from the python website, and I updated the openseespy package to the latest version for this testing.

Sang-ri

pellumbz:
I tried what you suggested I found the path that is used in spyder and I putted the same in fie preference in qouFEM (as you can see in attachement)  but again is not working.
Now it shows:
 - An error occurred in the Python script, the exit code is 1.

I think somewhere is a "trick" I can't find, but since it worked for you it means that my script is working and I can implement it on quoFEM, but I just need to find this problem with version :(

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version