chanzuckerberg / napari-cryoet-data-portal

A napari plugin to list, preview, and open data from the CZ Imaging Institute's CryoET Data Portal
MIT License
9 stars 2 forks source link

Retrieving any data via the Python GraphQL client fails #18

Closed andy-sweet closed 11 months ago

andy-sweet commented 11 months ago

This is likely due to the recent production changes of the GraphQL schema for the data portal.

One important example is the following.

from cryoet_data_portal import Client, Tomogram
client = Client()
tomo = client.find_one(Tomogram)

which produces the following error message.

TransportQueryError: {'extensions': {'code': 'validation-failed', 'path': '$.selectionSet.tomograms.selectionSet.s3_mrc_scale1'}, 'message': "field 's3_mrc_scale1' not found in type: 'tomograms'"}

I can fix this by installing cryoet_data_portal to a commit with a fix with some internal consistency checks.

When a new release is available on PyPI, we should require at least that release. In the mean time, there's not much we can do without a lot of effort.

There are some remaining issues to API changes in cryoet_data_portal, but at least this fix allows tomogram to be visualized (though annotations will fail).