Skip to content

Commit

Permalink
Merge pull request #477 from SpiNNakerManchester/reports_fix
Browse files Browse the repository at this point in the history
fix report_dir errors
  • Loading branch information
rowleya committed Oct 20, 2022
2 parents d46d6db + d3cfc94 commit 0ad8bb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pacman/operations/placer_algorithms/application_placer.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def _place_error(
unplaceable.append(app_vertex)

report_file = os.path.join(
PacmanDataView.get_report_dir_path(), "placements_error.txt")
PacmanDataView.get_run_dir_path(), "placements_error.txt")
with open(report_file, 'w', encoding="utf-8") as f:
f.write(f"Could not place {len(unplaceable)} of "
f"{PacmanDataView.get_n_vertices()} application vertices.\n")
Expand Down Expand Up @@ -226,7 +226,7 @@ def _draw_placements(placements, system_placements):
return

report_file = os.path.join(
PacmanDataView.get_report_dir_path(), "placements_error.png")
PacmanDataView.get_run_dir_path(), "placements_error.png")

# Colour the boards by placements
unused = (0.5, 0.5, 0.5, 1.0)
Expand Down

0 comments on commit 0ad8bb0

Please sign in to comment.