I'm trying to download the originally uploaded MRXS image via the REST API with the following code:
with Cytomine(host=params.host, public_key=params.public_key, private_key=params.private_key, verbose=logging.INFO) as cytomine:
image_instances = ImageInstanceCollection().fetch_with_filter("project", params.id_project)
for image in image_instances:
image.download(output_file, parent=True)
I reckon the result should be only the originally uploaded zip file. But instead I'm getting a zip file which contains the original image (1x.zip) plus the uncompressed .MRXS and the dat file directory zipped together - basically I'm getting the files back twice. Cytomine core v3.0.0/IMS v1.2.3. Can you please look into it?
Note: parent=False works fine, only downloads the MRXS content once, but is the uncomressed files zipped again (size doesn't match the original zip file). TIFF file download works fine for both parent=True and parent=False, produces expected results.
I'm trying to download the originally uploaded MRXS image via the REST API with the following code:
I reckon the result should be only the originally uploaded zip file. But instead I'm getting a zip file which contains the original image (1x.zip) plus the uncompressed .MRXS and the dat file directory zipped together - basically I'm getting the files back twice. Cytomine core v3.0.0/IMS v1.2.3. Can you please look into it?
Note:
parent=Falseworks fine, only downloads the MRXS content once, but is the uncomressed files zipped again (size doesn't match the original zip file). TIFF file download works fine for bothparent=Trueandparent=False, produces expected results.