Issue with running DFT job from Video Tutorials (4/5) #1023
-
Hi everyone, I am using the binder to follow along with the video tutorials and have run into an issue with running DFT jobs in the notebook. In the video, the following is typed in:
However I get the following Value error:
I have combed through everything and compared it to the video and it is identical. Kimia Ghaffari |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 5 replies
-
@kimiaGF I am sorry for the delay, it seems like there is a bug in the 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 |
Beta Was this translation helpful? Give feedback.
-
I realized that I could find a remedy for this problem, but it won't remove the cause of the problem, which is discussed here. So if it's ok, I would like to ask you use the code I posted above for now. I'll try to find a solution as quickly as possible. |
Beta Was this translation helpful? Give feedback.
-
Thank you @jan-janssen and @samwaseda! Both versions of the above code work for me now. I appreciate the help 😄 |
Beta Was this translation helpful? Give feedback.
@kimiaGF I am sorry for the delay, it seems like there is a bug in the
copy_to()
function. Can you try the following?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…