From: Diane Trout Date: Fri, 20 Mar 2015 23:30:14 +0000 (-0700) Subject: Actually comare an integer (length of list) to an integer 0. X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=f5ef9130b36b914c869b237aa01865f66f1484d9 Actually comare an integer (length of list) to an integer 0. Why was list() > 0 ever valid code? --- diff --git a/htsworkflow/pipelines/firecrest.py b/htsworkflow/pipelines/firecrest.py index 11c1d4c..fba83f9 100644 --- a/htsworkflow/pipelines/firecrest.py +++ b/htsworkflow/pipelines/firecrest.py @@ -145,7 +145,7 @@ def firecrest(pathname): if os.path.exists(matrix_pathname): # this is for firecrest < 1.3.2 f.matrix = open(matrix_pathname, 'r').read() - elif glob(bustard_pattern) > 0: + elif len(glob(bustard_pattern)) > 0: f.matrix = None # there are runs here. Bustard should save the matrix. else: