Commit a08d73b3 authored by gerald2545's avatar gerald2545
Browse files

correct valueError bad syntax for python 3

parent 061d451f
......@@ -420,19 +420,19 @@ Example :
args = parser.parse_args()
if len(args.txt_output) == 0 and len(args.img_output) == 0:
raise ValueError, "[ERROR] No output files."
raise ValueError("[ERROR] No output files.")
if len(args.txt_output)!= 0 and len(args.txt_output)!= 1 and len(args.txt_output)!= 2:
raise ValueError, "[ERROR] Incorrect number of txt output files, expected 1 output file or 2 output files with --readsplit option."
raise ValueError("[ERROR] Incorrect number of txt output files, expected 1 output file or 2 output files with --readsplit option.")
if len(args.img_output)!= 0:
if len(args.img_output)!= 1 and len(args.img_output)!= 2:
raise ValueError, "[ERROR] Incorrect number of img output files, expected 1 output file or 2 output files with --readsplit option."
raise ValueError("[ERROR] Incorrect number of img output files, expected 1 output file or 2 output files with --readsplit option.")
#Import the libraries for graphical output
import matplotlib
matplotlib.use('Agg') # Force matplotlib to not use any Xwindows backend
import matplotlib.pyplot as plot
from decimal import Decimal
if args.readsplit and ( (args.txt_output and len(args.txt_output)!= 2) or (args.img_output and len(args.img_output)!= 2) ):
raise ValueError, "[ERROR] Incorrect number of output files : with --readsplit option you need 2 output files."
raise ValueError("[ERROR] Incorrect number of output files : with --readsplit option you need 2 output files.")
#Init count
nb_by_pos = {'read1':[],'read2':[]}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment