133
« on: April 01, 2021, 05:47:10 PM »
ok. I will update the doc to show people how. basically:
1) if you look in ~/Documents/EE-UQ/LocalWorkDir/tmp.SimCenter after you run from the GUI there are files dakota.out and dakotaTab.out containing the results and a directory templateDir .. the templatedir should have a file dakota.json.
2) dakota.json is the output of the UI when you hit run and it is the input file for the application femUQ.py that actually runs the workflow causing the 2 output files to be generated.
3) you start femUQ by invoking python (you possibly might have to start in same dir as the input file (dakota.json).
4) fewUQ.py takes some additional arguments. if you look in ~/Documents/EE-UQ there is a debug.log file and in there search for something like PYTHON COMMAND . this is how the frontend UI is invoking the backend application and it will show you these additional args.
5) that line will also show that we are adding stuff to the env variable, adding OpenSees, dakota, and possibly python to the env setting of the process that runs. you will have to add these to your env variables if you run from outside the UI.
my PYTHON COMMAND line looks like:
PYTHON COMMAND "source $HOME/.bash_profile; export PATH=/Library/Frameworks/Python.framework/Versions/3.8/bin:/Users/fmckenna/release/EE-UQ/build/EE_UQ.app/Contents/MacOS/applications/opensees/bin:/Users/fmckenna/release/EE-UQ/build/EE_UQ.app/Contents/MacOS/applications/dakota/bin:$PATH; \"/Library/Frameworks/Python.framework/Versions/3.8/bin/python3\" \"/Users/fmckenna/release/EE-UQ/build/EE_UQ.app/Contents/MacOS/applications/Workflow/femUQ.py\" runningLocal \"/Users/fmckenna/Documents/EE-UQ/LocalWorkDir/tmp.SimCenter/templatedir/dakota.json\" \"/Users/fmckenna/release/EE-UQ/build/EE_UQ.app/Contents/MacOS/applications/Workflow/WorkflowApplications.json\""
when i run from the terminal i need to take off the \", basically this:
python3 /Users/fmckenna/release/EE-UQ/build/EE_UQ.app/Contents/MacOS/applications/Workflow/femUQ.py runningLocal /Users/fmckenna/Documents/EE-UQ/LocalWorkDir/tmp.SimCenter/templatedir/dakota.json
/Users/fmckenna/release/EEUQ/build/EE_UQ.app/Contents/MacOS/applications/Workflow/WorkflowApplications.json
so python3 <path to femUQ.py> runningLocal <path to input file> <path to WorkflowApplications.json>