Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Original image download for MRXS files #22

Open
ai4path opened this issue Feb 24, 2021 · 0 comments
Open

Original image download for MRXS files #22

ai4path opened this issue Feb 24, 2021 · 0 comments
Assignees

Comments

@ai4path
Copy link

ai4path commented Feb 24, 2021

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.

@geektortoise geektortoise self-assigned this May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants