From: Diane Trout Date: Fri, 20 Mar 2015 23:24:55 +0000 (-0700) Subject: filter out None c.times in list of potential times X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=4cd01dc505bbadf8e57a2a13006e6a3b745ad6e8 filter out None c.times in list of potential times --- diff --git a/htsworkflow/pipelines/runfolder.py b/htsworkflow/pipelines/runfolder.py index b12af02..a5b98a6 100644 --- a/htsworkflow/pipelines/runfolder.py +++ b/htsworkflow/pipelines/runfolder.py @@ -210,7 +210,7 @@ class PipelineRun(object): """ if self._name is None: components = [self.image_analysis, self.bustard, self.gerald] - tmax = max([ c.time for c in components if c ]) + tmax = max([ c.time for c in components if c and c.time ]) timestamp = time.strftime('%Y-%m-%d', time.localtime(tmax)) self._name = 'run_' + self.flowcell_id + "_" + timestamp + '.xml' return self._name