Python 2.6's DictWriter doesn't have writeheader, so fake it with join.
authorDiane Trout <diane@caltech.edu>
Mon, 19 Sep 2011 18:58:17 +0000 (11:58 -0700)
committerDiane Trout <diane@caltech.edu>
Mon, 19 Sep 2011 18:58:17 +0000 (11:58 -0700)
htsworkflow/pipelines/retrieve_config.py

index 888da7d03e59ab7175d1a7309257dd443bfae736..7427924374d7c3133e352b3e3782799191fd78be 100644 (file)
@@ -352,7 +352,7 @@ def save_sample_sheet(outstream, options, flowcell_info):
                             'Recipe': format_recipe_name,
                             'Operator': format_operator_name}
     out = csv.DictWriter(outstream, sample_sheet_fields)
-    out.writeheader()
+    outstream.write(','.join(sample_sheet_fields))
     for lane_number in LANE_LIST:
         lane_contents = flowcell_info['lane_set'][str(lane_number)]