Hi,
Thanks Will for the reply. I managed to upload a script but without --official since I am not admin. However, I feel using the scripts is not the way I am looking for since I am not using OMERO.insight etc. I am interested in searching metadata using APIs, and extract those metadata. For this purpose I tried:
for i in conn.searchObjects(["Image"], "*lens*"):
print i.OMERO_CLASS, i.getId(), i.getName()
print i.loadOriginalMetadata()
for some files such as .tiff or .czi I got some result but for some others such as .mrc, it give an error:
return self.c.waitOnCmd(handle, loops=loops, ms=ms, failonerror=failonerror)
File "../OMEROpy/lib/python/omero/clients.py", line 831, in waitOnCmd
raise omero.CmdError(rsp)
omero.CmdError
My questions are: Is loadOriginalMetadata() an appropriate function to get metadata or you have other suggestions? why it gives error for some files and how I can solve it?
Thanks for your patience.
Best regards,
pz3977