SimCenter Forum

Research in Natural Hazards Engineering => Regional Hazard Simulation (R2D, rWhale) => Topic started by: jia on February 10, 2023, 02:58:40 PM

Title: An error occurred in the Python script, the exit code is 1
Post by: jia on February 10, 2023, 02:58:40 PM
Hello!
In R2D, example 2 works fine locally. But an error occurred when I used my own earthquake and building files, so I took two buildings and two records from Example 2 and tested them, and the same error occurred:
22:49:53 Appending additional settings to the BIM files...
Building files successfully created.
-----------------------------------------------------------------------
22:49:53 Creating regional mapping...

22:49:53 - An error occurred in the Python script, the exit code is 1
22:49:53 - Analysis complete with errors
22:49:53 - Failed to run the workflow!!!

Attached is my test file, can you tell me how to solve it? thank you
Best wishes to you!
Title: Re: An error occurred in the Python script, the exit code is 1
Post by: fmk on February 10, 2023, 08:06:18 PM
you were missing some stuff (e.g. units with motion, ..) and your nearest neighbour search was asking for 4 neighbours and you only had 2 motions .. attached is the updated input file for what you sent.
Title: Re: An error occurred in the Python script, the exit code is 1
Post by: jia on February 11, 2023, 02:28:57 AM
Yes, it ran successfully after the change, thank you very much!