Dakota File - Direct Call from Python and Automatic Generating - rezvan, February 09, 2022 #300
-
Hello, 1- As mentioned in workshop#3, in case the Pelicun module is being used directly, it is possible to delete unnecessary parts of the dakota.json file. The file 6_story_BRBF_pelicun.json file prepared for the workshop was an example of the shortened file. I tried to run Pelicun using this file and the response.csv file prepared for the workshop, but it seems there is some missing information in dakota file. I attached the log file and the message on the command prompt, I was wondering if you could share a shortened but correct json file. 2- For performing analysis on a large number of buildings, how is it possible to generate the dakota.json file automatically in python. For example, reading the required information from a csv file and generating the dakota file for each building automatically. As I understood, the information could be changed manually from the file or using PBE software and get dakota file which neither is practical for a large number of cases. Thank you so much and again I appreciate your precious effort on this helpful and informative module. P.S. Here is the message after running the DL_calculation.py in command prompt: C:\Users\pooya\Desktop\Temp\pelicun>python C:\PBE\applications\performDL\pelicun\DL_calculation.py --filenameDL 6_story_BRBF_pelicun.json --filenameEDP response.csv
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi Rezvan, Thank you for reaching out to us, it is good to hear that you find Pelicun helpful for your work. Based on the error message, I assume the problem with the shortened file in your first question is that the names of certain attributes under the GeneralInformation part of the file do not follow the standard naming convention we introduced across our tools last summer. I assume the workshop you refer to was held before that date. Since those standard names were introduced, pelicun 2.6 and later versions look for NumberOfStories and PlanArea under GeneralInformation and does not accept other versions of these attributes anymore. Please take a look at the shortened file and edit it if needed so that it follows these conventions. That should help you get past the error. Several approaches are available to analyze a large number of buildings:
Let me know if you have further questions. Adam PS. I hope you don't mind if we delete the copy of your question that was posted on the PBE board.
|
Beta Was this translation helpful? Give feedback.
-
Dear Adam, I appreciate your detailed answer and proposed solutions. Pooya
|
Beta Was this translation helpful? Give feedback.
-
Hello, File "D:\python\lib\site-packages\numexpr\necompiler.py", line 281, in stringToExpression
|
Beta Was this translation helpful? Give feedback.
Hi Rezvan,
Thank you for reaching out to us, it is good to hear that you find Pelicun helpful for your work.
Based on the error message, I assume the problem with the shortened file in your first question is that the names of certain attributes under the GeneralInformation part of the file do not follow the standard naming convention we introduced across our tools last summer. I assume the workshop you refer to was held before that date. Since those standard names were introduced, pelicun 2.6 and later versions look for NumberOfStories and PlanArea under GeneralInformation and does not accept other versions of these attributes anymore. Please take a look at the shortened file and edit it …