# HG changeset patch # User iuc # Date 1591619801 14400 # Node ID e08b1dc0480cc9377f8b5a993161ab35b66b7813 # Parent 11036f6197d6aab5f151e57fd143c8c51650a26e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/idr_download commit 5b2ba6c849aa344470fe1bb25f063dc3f8f790ae" diff -r 11036f6197d6 -r e08b1dc0480c idr_download_by_ids.py --- 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 diff -r 11036f6197d6 -r e08b1dc0480c idr_download_by_ids.xml --- 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 @@ - + - download images from the Image Data Resource using image IDs