From 3fd5e9d11cf59f6612fa02421f7eb4dcff6d58ca Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Tue, 31 Mar 2009 01:30:40 +0000 Subject: [PATCH] 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 --- htsworkflow/pipelines/firecrest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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): -- 2.30.2