Open gwaybio opened 3 years ago
Hi Greg, I'm afraid this data isn't available via any JSON api currently. The webclient code that loads Image acquisition metadata is some of the older code there, and all the html is rendered on the server. E.g. https://idr.openmicroscopy.org/webclient/metadata_acquisition/image/11514301/
The code that loads the data from OMERO and renders that page is at https://github.com/ome/omero-web/blob/394e75170f5d6e9997edf12f6906c489186d5f22/omeroweb/webclient/views.py#L1834
It creates a context
dict, but unfortunately we can't simply dump that to JSON as it includes a bunch of objects (Django forms etc) that aren't JSON serializable.
But please create an issue on omero-web repo for supporting acquisition metadata as JSON. Regards, Will.
It occurred to me that another way you could get the data from IDR, while you're waiting on https://github.com/ome/omero-web/pull/336 is to use the OMERO python api (see https://docs.openmicroscopy.org/omero/5.6.3/developers/Python.html) with the code samples I added to that PR. If that seems viable for you I can give you some more pointers as the PR is unlikely to be available on IDR for a while.
Thanks for your helpful pointers in #147, I have another API-related question :)
Is there a way for me to pull microscopy image magnification from the API?
I imagine this info would have been in the image annotations endpoint (see example below), but I am not readily seeing it. I also did not see this mentioned in the API docs. Maybe magnification exists in another API section?
Thanks! Greg