Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pymatgen.ext.matproj import MPRester
- import json
- from pprint import pprint
- with MPRester("GKDHNwKre8uiowqhPh") as m:
- all_task_ids = {task_id for doc in m.query(criteria={},["task_ids"])
- for task_id in doc.get("task_ids",[])}
- mvc_ids = {task_id for task_id in all_task_ids if "mvc" in task_id}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement