Cytomine-python-client icon indicating copy to clipboard operation
Cytomine-python-client copied to clipboard

Wrong id when retrieving uploaded file from upload_image()

Open laudmt opened this issue 1 year ago • 0 comments

When uploading an image with upload_image the return object cytomine.models.storage.UploadedFile object has an id attribute that I though would be the cytomine image id.

Although, it is not. This id is different from the actual id of the image, that can be retrieved by fetching the ImageInstanceCollection() of the project and getting this id.

Why? Could you add more documentation to explicitely explain what are those id? Is there a more optimised way of obtaining the real id of the image?

Thank you!

laudmt avatar Jun 28 '24 10:06 laudmt