-
Notifications
You must be signed in to change notification settings - Fork 874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OPTIMADE client generates malformed queries #2852
Comments
(same thing also applies to string queries within the |
No problem, and thanks! Also found another bug where My own client at https://www.optimade.org/optimade-python-tools/latest/getting_started/client/ is getting pretty mature and could probably integrated here... (already supports pymatgen Structure output, obeys all the standardized metadata we have for delaying requests, async queries over providers, custom callbacks for e.g., saving/storing in databases) Extra deps would be |
That sounds great! 👍 |
I recommend coordinating with @munrojm on that but I'd be happy to help/act as reviewer if we go ahead. |
Describe the bug
At some point, the OPTIMADE client in this repo was linted (presumably) and
f'?response_fields="{response_fields}"...'
was replaced withf'?response_fields={response_fields!r}'
, which generates query parameters with the wrong (according to the OPTIMADE spec, at least) kind of quotes:pymatgen/pymatgen/ext/optimade.py
Line 316 in ebec849
This renders the client useless, as every request has such malformed queries.
I'm happy to fix this (will make a PR straightaway), but please let me know if this could be released before the end of the week --- if not I will have to adjust the pymatgen OPTIMADE tutorials that are being delivered at a conference on the 28th Feb.
The text was updated successfully, but these errors were encountered: