Skip to content

Commit

Permalink
change the name formatting for other files too
Browse files Browse the repository at this point in the history
  • Loading branch information
gina7484 committed Apr 7, 2023
1 parent b4bf167 commit 9bd41a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sam/sim/test/gen_gantt.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ def gen_gantt(extra_info, testname):
writer.writerow([block, start_list[idx], finish_list[idx], duration_list[idx],'-'])

# Print all the statistics to a text file
text_file = open(testname + '_' + extra_info["dataset"] + '_back'+back_depth+".txt","w")
text_file = open(testname + '_' + extra_info["dataset"] + '_back_'+back_depth+".txt","w")
for k in extra_info.keys():
if "/" in k:
text_file.write(k+": "+str(extra_info[k])+"\n")
text_file.close()

# Creating gantt chart
plt.barh(y=block_list, width=duration_list, left=start_list)
file_name = testname + '_' + extra_info["dataset"] + "_back"+back_depth+".png"
file_name = testname + '_' + extra_info["dataset"] + "_back_"+back_depth+".png"
plt.savefig(file_name, bbox_inches="tight")

0 comments on commit 9bd41a0

Please sign in to comment.