Skip to content

Commit

Permalink
0119
Browse files Browse the repository at this point in the history
  • Loading branch information
tian50 committed Jan 20, 2021
1 parent f53c849 commit 321c7c0
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions dakota_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,18 @@ def process(fn_json_args):
return

except:
results.fail()
with open('results.out', 'w') as fout:
results.write(stream=fout)
print(fse.format(dt.datetime.now(), evid, 'FAIL'))
e = tb.format_exc()
print(e)
if 'fail_replace' in interface_args.keys():
for k, v in interface_args['fail_replace'].items():
# if v == 'inf' or v == '-inf':
results[k].function = float(v)
results.write()
else:
results.fail()
with open('results.out', 'w') as fout:
results.write(stream=fout)
e = tb.format_exc()
print(e)
return


Expand Down

0 comments on commit 321c7c0

Please sign in to comment.