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