diff --git a/script/EnergyScan.py b/script/EnergyScan.py index 0a36f34..7ab6ef3 100644 --- a/script/EnergyScan.py +++ b/script/EnergyScan.py @@ -67,7 +67,7 @@ def _startPlot(type): MCP2 = [[0 for x in range(1)] for x in range(NrCounters)] output_file_MCP1 = output_path+"MCP1"+file_prefix+"_" + suffix + ".dat" output_file_MCP2 = output_path+"MCP2"+file_prefix+"_" + suffix + ".dat" - open(output_file_MCP1, "w+") as MCP1out + MCP1out.open(output_file_MCP1, "w+") open(output_file_MCP2, "w+") as MCP2out MCP1out.write("rbkenergy" + sep + "Sum1" + sep + "Sum2" + sep + "Cam1" + sep + "Cam2" + sep + "Array" + line_sep) MCP2out.write("rbkenergy" + sep + "Sum1" + sep + "Sum2" + sep + "Cam1" + sep + "Cam2" + sep + "Array" + line_sep)