From f5ef9130b36b914c869b237aa01865f66f1484d9 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Fri, 20 Mar 2015 16:30:14 -0700 Subject: [PATCH] Actually comare an integer (length of list) to an integer 0. Why was list() > 0 ever valid code? --- htsworkflow/pipelines/firecrest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2