Skip to content

Commit

Permalink
Fix conflict, use built-in os function
Browse files Browse the repository at this point in the history
  • Loading branch information
steltze committed Nov 27, 2024
1 parent 0c4f958 commit 92dc849
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hls4ml/backends/vitis/passes/fifo_depth_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def override_test_bench(model):
new_test_bench.write(newline)

# replace the old test bench with the new test bench that includes a for-loop
os.system(f"mv {path_to_new_test_bench} {path_to_old_test_bench}")
os.replace(path_to_new_test_bench, path_to_old_test_bench)
return


Expand Down
3 changes: 1 addition & 2 deletions hls4ml/writer/vitis_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,5 @@ def write_hls(self, model):
"""
super().write_hls(model)
self.write_nnet_utils_overrides(model)
self.write_board_script(model)
os.remove(model.config.get_output_dir() + '.tar.gz')
self.write_tar(model)
self.write_board_script(model)

0 comments on commit 92dc849

Please sign in to comment.