changeset 5:e08b1dc0480c draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/idr_download commit 5b2ba6c849aa344470fe1bb25f063dc3f8f790ae"
author iuc
date Mon, 08 Jun 2020 08:36:41 -0400
parents 11036f6197d6
children 5c743356df83
files idr_download_by_ids.py idr_download_by_ids.xml
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/idr_download_by_ids.py	Fri May 15 14:54:02 2020 -0400
+++ b/idr_download_by_ids.py	Mon Jun 08 08:36:41 2020 -0400
@@ -2,10 +2,11 @@
 import os
 import sys
 import tarfile
+import time
+from tempfile import TemporaryFile
 
 from libtiff import TIFF
 from PIL import Image
-from tempfile import TemporaryFile
 from omero.gateway import BlitzGateway  # noqa
 from omero.constants.namespaces import NSBULKANNOTATIONS  # noqa
 
@@ -281,6 +282,7 @@
                         tarinfo = tarfile.TarInfo(name=fname)
                         buf.seek(0, 2)
                         tarinfo.size = buf.tell()
+                        tarinfo.mtime = time.time()
                         buf.seek(0)
                         archive.addfile(tarinfo=tarinfo, fileobj=buf)
                 else:  # save image as individual file
--- a/idr_download_by_ids.xml	Fri May 15 14:54:02 2020 -0400
+++ b/idr_download_by_ids.xml	Mon Jun 08 08:36:41 2020 -0400
@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<tool id="idr_download_by_ids" name="IDR Download" version="0.40" profile="18.09">
+<tool id="idr_download_by_ids" name="IDR Download" version="0.41" profile="18.09">
     <description>- download images from the Image Data Resource using image IDs</description>
     <macros>
         <xml name="region_spec" token_pos="upper-left corner">