-
Notifications
You must be signed in to change notification settings - Fork 32
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
conn.c.download behavior differs from java implementation #425
Comments
@Rdornier you are right that the two implementations behave differently. Going further, I believe the contract of these APIs and their signature was never expected to be compared directly. The Python omero.client.download API effectively mirrors the Java one at omero.client.download. In both cases, the behavior is to take an On the contrary, the omero.gateway.facility.TransferFacilityHelper.downloadImage API is operating on |
Hi @sbesson Thanks for the clarification. I wasn't comparing the right APIs together.
Thanks for pointing this out ! Do you think it would be possible to implement a method I currently duplicate the code of the Rémy. |
Hi @Rdornier - have a look at https://gist.github.com/will-moore/a9f90c97b5b6f1a0da277a5179d62c5a |
Hi @will-moore, Thanks for pointing out this code ; it works pretty well !
Ok, I filtered the filesets that have already been downloaded to avoid multiple times download. At the end, the only thing to add to the |
@Rdornier please feel free if you'd like to open a PR to propose the changes you'd like to see? |
Hello,
I noticed that the behavior of the conn.c.download method is not the same as the one implemented on omero.inisght (and omero-java-gateway)
In the latest version of omero.inisght, when an image is downloaded, a parent folder
Fileset_xxxx
is created and the image(s) linked to the corresponding fileset are downloaded inside.This is not the case in omero-py. The image is simply downloaded without creating any folder.
I was wondering if it is possible to mirror the behavior of the latest java implementatio into omero-py. It is quite annoying to deal with those two behaviors in automated tasks, espacially when I have to read the images froma a different script.
Thanks,
Rémy.
Edit : current existing bug in Java implementation for vsi files : ome/omero-gateway-java#89
The text was updated successfully, but these errors were encountered: