Too much data requested in one query


#1

Hi, I am trying to download all compounds in MP data including their Pretty formula and CIF. I am getting the following error. Is there any better idea to do so?

reak down your query into sub-queries.", “version”: {“db”: “2018.11”, “pymatgen”: “2018.11.6”, “rest”: “2.0”}, “created_at”: “2018-11-12T14:44:46.350284”, “traceback”: “Traceback (most recent call last):\n File \”/var/www/python/matgen_prod/materials_django/rest/rest.py\", line 94, in wrapped\n d = func(*args, **kwargs)\n File \"/var/www/python/matgen_prod/materials_django/rest/rest.py\", line 176, in query\n \“Too much data requested in one query.\”\nrest.rest.RESTError: Too much data requested in one query. Please break down your query into sub-queries.\n"}’

Any suggestions would be really appreciated.


#2

There is a good chance that the next release of pymatgen will auto-chunk your query for you. See this pull request, and in the meantime you can reference the proposed changes to MPRester.query and use that code to break down your current query.

Best,
Donny


#3

Thank you. I will try it.