Skip to content

Issue with running DFT job from Video Tutorials (4/5) #1023

Answered by jan-janssen
kimiaGF asked this question in Q&A
Discussion options

You must be logged in to vote

@kimiaGF I am sorry for the delay, it seems like there is a bug in the copy_to() function. Can you try the following?

for strain in strain_lst: 
    job_strain = pr.create.job.Sphinx(job_name="spx_" + str(1+strain).replace(".", "_"))
    job_strain.structure = structure
    # job_strain = job_dft.copy_to(
    #     new_job_name="spx_" + str(1+strain).replace(".", "_"), 
    #     new_database_entry=False
    # )
    structure_copy = structure.copy()
    structure_copy.apply_strain(strain)
    job_strain.structure =structure_copy 
    job_strain.run()

Also you might need to delete the existing calculation as the failed calculation might confuse pyiron. You can do this with pr.remove_jobs(r…

Replies: 0 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@samwaseda
Comment options

@samwaseda
Comment options

Answer selected by kimiaGF
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants