You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jumping from this issue, it seems that the omero.policy.binary_access configuration, if set to +read +write +image +plate, prevents the loading of wellSamples from the API (UnloadedCollectionException) at the ImageData level.
If this config is set to default, the wellSamples are loaded correctly. A minimal script is available in the above mentioned issue to test.
It seems to be a side effect of this config which, according to what I understand from the doc, should give the access to the binary files and allow the download of the plates from the webclient
omero config set omero.policy.binary_access "+read,+write,+image,+plate"
Run above code again, now gives:
Exception in thread "main" omero.UnloadedCollectionException: Error updating collection:wellSamplesSeq
Collection is currently null. This can be seen
by testing "wellSamplesSeqLoaded". This implies
that this collection was unloaded. Please refresh this object
in order to update this collection.
at omero.model.ImageI.throwNullCollectionException(ImageI.java:40)
at omero.model.ImageI.copyWellSamples(ImageI.java:698)
> python test.py
Traceback (most recent call last):
...
File "/Users/dom/micromamba/envs/idr/lib/python3.10/site-packages/omero_model_ImageI.py", line 98, in throwNullCollectionException
raise _omero.UnloadedEntityException(""+
omero.UnloadedEntityException: Error updating collection:wellSamplesSeq
Collection is currently null. This can be seen
by testing "wellSamplesSeqLoaded". This implies
that this collection was unloaded. Please refresh this object
in order to update this collection.
Script:
with omero.cli.cli_login() as c:
conn = BlitzGateway(client_obj=c.get_client())
img = conn.getObject("Image", 1)
print(len(img._obj.copyWellSamples()))
Hello,
Jumping from this issue, it seems that the omero.policy.binary_access configuration, if set to
+read +write +image +plate
, prevents the loading of wellSamples from the API (UnloadedCollectionException) at the ImageData level.If this config is set to default, the wellSamples are loaded correctly. A minimal script is available in the above mentioned issue to test.
It seems to be a side effect of this config which, according to what I understand from the doc, should give the access to the binary files and allow the download of the plates from the webclient
Rémy
cc @gaelrayot-epfl
The text was updated successfully, but these errors were encountered: