diff detection_viz.py @ 1:ff66bae1f7f8 draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/detection_viz/ commit 787ebcc8daa1834214bc92c201c921c704ef2d1f
author thomaswollmann
date Mon, 07 Jan 2019 05:36:36 -0500
parents 629d9e8ca64c
children
line wrap: on
line diff
--- a/detection_viz.py	Wed Dec 12 04:37:59 2018 -0500
+++ b/detection_viz.py	Mon Jan 07 05:36:36 2019 -0500
@@ -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()