Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. from pymatgen.ext.matproj import MPRester
  2. import json
  3. from pprint import pprint
  4.  
  5. with MPRester("GKDHNwKre8uiowqhPh") as m:
  6.  
  7.  
  8.     all_task_ids = {task_id for doc in m.query(criteria={},["task_ids"])
  9.         for task_id in doc.get("task_ids",[])}
  10.         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