Skip to content

Commit

Permalink
0924
Browse files Browse the repository at this point in the history
  • Loading branch information
tian50 committed Sep 24, 2021
1 parent a88d57c commit 4d2c956
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion msgpi/dakota/interface.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import traceback as tb
from typing import KeysView

import msgpi.design_analysis as mda
import msgpi.utils.logger as mlog
Expand Down Expand Up @@ -40,9 +41,19 @@ def initialize(self, fn_json_args):
# FROM DAKOTA
# ------------------------------------------------------------

try:
dakota_params_file = self.settings['dakota_parameters_file']
except KeyError:
dakota_params_file = 'input.in'

try:
dakota_results_file = self.settings['dakota_results_file']
except KeyError:
dakota_results_file = 'output.out'

try:
dakota_params, dakota_results = di.read_parameters_file(
'input.in', 'output.out'
dakota_params_file, dakota_results_file
)

self.evid = int(dakota_params.eval_id)
Expand Down

0 comments on commit 4d2c956

Please sign in to comment.