Skip to content

Commit 1edc428

Browse files
author
Michael Vasseur
committed
Fix the visualizer script
1 parent ac0679c commit 1edc428

File tree

1 file changed

+2
-4
lines changed
  • example_problems/boolfind/output_visualizer/boolfind_visual

1 file changed

+2
-4
lines changed
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
#!/usr/bin/env python3
22
#
33
# Invoke as:
4-
# <output_visualizer_program> input answer_file feedback_dir [additional_arguments] < team_output [ > team_input ]
4+
# <output_visualizer_program> answer_file feedback_file
55
import matplotlib.pyplot as plt
66
import sys
77

88
my_name = sys.argv[0]
99
my_input = sys.argv[1]
10-
#real_answer = sys.argv[2]
1110
my_feedback = sys.argv[2]
1211

1312
with open(my_input, 'r') as f:
@@ -16,7 +15,6 @@
1615
for line in lines:
1716
if 'READ' in line:
1817
vals.append(int(line.split(' ')[-1]))
19-
print(line)
2018
plt.plot([0,1])
2119
plt.ylabel('Guesses')
22-
plt.savefig(f"{my_feedback}")
20+
plt.savefig(f"{my_feedback}", format='png')

0 commit comments

Comments
 (0)