from pyiron_atomistics import Project
pr = Project("ev_curve")
job_lmp = pr.create.job.Lammps("lmp")
job_lmp.structure = pr.create.structure.ase.bulk("Al", cubic=True)
job_elastic = pr.create.job.Murnaghan("murn")
job_elastic.ref_job = job_lmp
job_elastic.run()
pr.remove_jobs(recursive=True, silently=True)
The child jobs of the Murnaghan job (ID 1) are already deleted when the Murnaghan job is deleted. So we see a series of warnings when the corresponding child jobs (ID 2 - 12) are deleted:
2024-04-09 10:54:00,429 - pyiron_log - WARNING - Could not remove job with ID 2
2024-04-09 10:54:00,429 - pyiron_log - WARNING - Could not remove job with ID 3
2024-04-09 10:54:00,429 - pyiron_log - WARNING - Could not remove job with ID 4
2024-04-09 10:54:00,429 - pyiron_log - WARNING - Could not remove job with ID 5
2024-04-09 10:54:00,430 - pyiron_log - WARNING - Could not remove job with ID 6
2024-04-09 10:54:00,430 - pyiron_log - WARNING - Could not remove job with ID 7
2024-04-09 10:54:00,431 - pyiron_log - WARNING - Could not remove job with ID 8
2024-04-09 10:54:00,431 - pyiron_log - WARNING - Could not remove job with ID 9
2024-04-09 10:54:00,431 - pyiron_log - WARNING - Could not remove job with ID 10
2024-04-09 10:54:00,432 - pyiron_log - WARNING - Could not remove job with ID 11
2024-04-09 10:54:00,432 - pyiron_log - WARNING - Could not remove job with ID 12
Example code:
The child jobs of the Murnaghan job (ID 1) are already deleted when the Murnaghan job is deleted. So we see a series of warnings when the corresponding child jobs (ID 2 - 12) are deleted: