Skip to content

Issue with finding the dependencies among the sub-tasks of a primary calculation using pymatgen API. #3884

Closed Answered by QuantumChemist
hongyi-zhao asked this question in Q&A
Discussion options

You must be logged in to vote

hmm.... you basically produced the same result.

At this point, I'm not quite sure if you can extract the sequential order of the jobs using the MP API.

The entries of the MPIDs are according to "last_updated":

tasks = mpr.materials.search(material_ids=[material_id])
for task in tasks:
    for mpid, dft_type in task.calc_types.items():
        print(mpid, dft_type, mpr.materials.tasks.search(task_ids=[mpid])[0].last_updated)

with the output:

Retrieving MaterialsDoc documents: 100%|██████████| 1/1 [00:00<00:00, 34379.54it/s]
mp-1183063 GGA Structure Optimization 2019-01-11 11:43:27.830000
Retrieving TaskDoc documents: 100%|██████████| 1/1 [00:00<00:00, 32768.00it/s]
Retrieving TaskDoc docum…

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@QuantumChemist
Comment options

@QuantumChemist
Comment options

@hongyi-zhao
Comment options

@QuantumChemist
Comment options

Answer selected by hongyi-zhao
@hongyi-zhao
Comment options

@hongyi-zhao
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants