1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
Author: Andreas Tille <tille@debian.org>
Last-Update: Mon, 25 Jul 2016 13:19:50 +0200
Description: Create PNG instead of JPG to work around bug #827806
Thanks to Christian Seiler for the hint
--- a/doc/pipeline_functions.rst
+++ b/doc/pipeline_functions.rst
@@ -455,7 +455,7 @@ Pipeline functions
**Example**:
::
- pipeline_printout_graph("flowchart.jpg", "jpg", [task1, task16],
+ pipeline_printout_graph("flowchart.png", "png", [task1, task16],
forcedtorun_tasks = [task2],
no_key_legend = True)
--- a/ruffus/task.py
+++ b/ruffus/task.py
@@ -4572,7 +4572,7 @@ def pipeline_printout_graph(stream,
:param stream: where to print to
:type stream: file-like object with ``write()`` function
- :param output_format: ["dot", "jpg", "svg", "ps", "png"]. All but the
+ :param output_format: ["dot", "svg", "ps", "png"]. All but the
first depends on the
`dot <http://www.graphviz.org>`_ program.
:param target_tasks: targets task functions which will be run if they are
--- a/ruffus/test/test_pipeline_printout_graph.py
+++ b/ruffus/test/test_pipeline_printout_graph.py
@@ -124,7 +124,7 @@ class Test_ruffus(unittest.TestCase):
os.makedirs(tempdir)
#
- # check graphviz exists for turning dot files into jpg, svg etc
+ # check graphviz exists for turning dot files into png, svg etc
#
try:
process = Popen("echo what | dot", stdout=PIPE, stderr=STDOUT, shell = True)
@@ -144,7 +144,7 @@ class Test_ruffus(unittest.TestCase):
print(" Run pipeline normally...")
if self.graph_viz_present:
pipeline_printout_graph(tempdir + "flowchart.dot", pipeline= "main")
- pipeline_printout_graph(tempdir + "flowchart.jpg",
+ pipeline_printout_graph(tempdir + "flowchart.png",
target_tasks =[subdivide_start],
forcedtorun_tasks = [split_start],
no_key_legend = True)
@@ -175,7 +175,7 @@ class Test_ruffus(unittest.TestCase):
test_pipeline.subdivide(subdivide_start, split_start, formatter(), tempdir + '{basename[0]}_*.subdivided', tempdir + '{basename[0]}')
if self.graph_viz_present:
test_pipeline.printout_graph(tempdir + "flowchart.dot")
- test_pipeline.printout_graph(tempdir + "flowchart.jpg",
+ test_pipeline.printout_graph(tempdir + "flowchart.png",
target_tasks =[subdivide_start],
forcedtorun_tasks = [split_start],
no_key_legend = True)
|