From 900457b4d1b2fb98ba69c012e5c11c31c847b339 Mon Sep 17 00:00:00 2001 From: Su Tian Date: Thu, 25 Mar 2021 17:13:23 -0400 Subject: [PATCH] 0325 --- dakota_interface.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dakota_interface.py b/dakota_interface.py index e35afa8..5c6c0bd 100644 --- a/dakota_interface.py +++ b/dakota_interface.py @@ -116,9 +116,13 @@ def process(fn_json_args): args = pp[1:] if fn == 'self': r = bps[args[1]] + inter[args[1]] = bps[args[1]] else: r = eval(f'dpf.{fn}')(interface_args, params, bps, inter, *args) - results[rn].function = r + # results[rn].function = r + for rn in results.descriptors: + if rn in inter.keys(): + results[rn].function = inter[rn] elif type(interface_args['post_process']).__name__ == 'dict': # Location of the origin relative to a ref point