Repository 'detection_viz'
hg clone https://toolshed.g2.bx.psu.edu/repos/thomaswollmann/detection_viz

Changeset 1:ff66bae1f7f8 (2019-01-07)
Previous changeset 0:629d9e8ca64c (2018-12-12)
Commit message:
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/detection_viz/ commit 787ebcc8daa1834214bc92c201c921c704ef2d1f
modified:
detection_viz.py
detection_viz.xml
removed:
test-data/out.tif
b
diff -r 629d9e8ca64c -r ff66bae1f7f8 detection_viz.py
--- a/detection_viz.py Wed Dec 12 04:37:59 2018 -0500
+++ b/detection_viz.py Mon Jan 07 05:36:36 2019 -0500
b
@@ -32,8 +32,7 @@
     if fp is not None:
         plot_circles(fp, ax, 'darkorange', stroke_size, circle_radius)
 
-    fig.canvas.print_png("tmp.png", dpi=1800)
-    os.rename("tmp.png", output_file)
+    fig.canvas.print_png(output_file, dpi=1800)
 
 if __name__ == "__main__":
     parser = argparse.ArgumentParser()
b
diff -r 629d9e8ca64c -r ff66bae1f7f8 detection_viz.xml
--- a/detection_viz.xml Wed Dec 12 04:37:59 2018 -0500
+++ b/detection_viz.xml Mon Jan 07 05:36:36 2019 -0500
[
@@ -6,8 +6,10 @@
     </requirements>
     <command>
         <![CDATA[
-        python '$__tool_directory__/detection_viz.py' '$input' '$output' --stroke_size $thickness --circle_radius $circle_radius $tp $fn $fp
-]]>
+        python '$__tool_directory__/detection_viz.py' '$input' ./tmp.png 
+        --stroke_size $thickness --circle_radius $circle_radius $tp $fn $fp
+        && mv ./tmp.png '$output'
+        ]]>
     </command>
     <inputs>
         <param name="input" type="data" format="tiff,png,jpg,bmp" label="Binary Image File"/>
b
diff -r 629d9e8ca64c -r ff66bae1f7f8 test-data/out.tif
b
Binary file test-data/out.tif has changed