Skip to content

Commit

Permalink
Fix #5118 - do not write h5 file if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeilman committed Nov 12, 2022
1 parent 416020b commit 3fd1525
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions sirepo/template/warpvnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1165,12 +1165,12 @@ def _stl_polygon_file(filename):


def _save_stl_polys(data):
try:
template_common.write_dict_to_h5(
data,
_SIM_DATA.lib_file_write_path(_stl_polygon_file(data.file)),
h5_path="/",
)
except Exception as e:
pkdlog("save_stl_polys error={}", e)
pass
p = _SIM_DATA.lib_file_write_path(_stl_polygon_file(data.file))
# write once
if p.exists():
return
template_common.write_dict_to_h5(
data,
p,
h5_path="/",
)

0 comments on commit 3fd1525

Please sign in to comment.