Skip to content

Commit

Permalink
1118
Browse files Browse the repository at this point in the history
  • Loading branch information
tian50 committed Nov 19, 2020
1 parent a2fd8ef commit 22bcd8f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions dakota_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def interface(fn_json_args):


# Calculate actual responses
# is_post_funcs_imported = False
for k, v in interface_args['post_process'].items():
# print('')
# print('label:', v[0])
Expand All @@ -78,12 +77,7 @@ def interface(fn_json_args):
elif v[1] == 'abs_rel_diff':
r = np.abs((bp - v[2]) / v[2])
else:
# if not is_post_funcs_imported:
# import post_funcs
# is_post_funcs_imported = True
# eval('from post_funcs import {0}'.format(v[1]))
# r = eval(v[1])(bp, v[2])
r = eval('post_funcs.{0}'.format(v[1]))(bp, v[2])
r = eval('dpf.{0}'.format(v[1]))(bp, v[2])
results[k].function = r


Expand Down

0 comments on commit 22bcd8f

Please sign in to comment.