From: Diane Trout Date: Tue, 31 Mar 2009 01:30:40 +0000 (+0000) Subject: Don't attempt to save xml for a matrix in firecrest if it wasn't created. X-Git-Tag: 0.2.0.3~3 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=3fd5e9d11cf59f6612fa02421f7eb4dcff6d58ca Don't attempt to save xml for a matrix in firecrest if it wasn't created. since we're now creating it in bustard for greater than pipeleine 1.1 --- diff --git a/htsworkflow/pipelines/firecrest.py b/htsworkflow/pipelines/firecrest.py index bcac6ed..e8d0a28 100644 --- a/htsworkflow/pipelines/firecrest.py +++ b/htsworkflow/pipelines/firecrest.py @@ -70,8 +70,9 @@ class Firecrest(object): run_date.text = str(self.time) user = ElementTree.SubElement(root, Firecrest.USER) user.text = self.user - matrix = ElementTree.SubElement(root, Firecrest.MATRIX) - matrix.text = self.matrix + if self.matrix is not None: + matrix = ElementTree.SubElement(root, Firecrest.MATRIX) + matrix.text = self.matrix return root def set_elements(self, tree):