Skip to content

Commit

Permalink
Adding statement to capture output to a file
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitshah009 committed Aug 18, 2017
1 parent fb6ccfb commit f102c5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions TaskB_evaluation/task4_subtaskB_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ def test_dcase_style2(argument1,argument2):
output += segment_based_metrics.result_report_class_wise()
output += " \n"
print output
output_file = argument2 + '_output_taskb.txt'
with open(output_file,'w') as f1:
f1.write(output)
f1.close()

if __name__ == "__main__":
if len(sys.argv) != 3:
Expand Down

0 comments on commit f102c5d

Please sign in to comment.