You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pyiron provides a publication template in https://github.com/pyiron/pyiron-publication-template this template is based on the project being archived before. In many cases you might not want to archive all calculation in a given project. So below is a short example code to copy the calculation to an archive project and then pack this project for publication.
frompyiron_atomisticsimportProject# Create an example calculation pr_origin=Project("origin")
job=pr_origin.create.job.Lammps("lmp")
job.structure=pr_origin.create.structure.ase.bulk("Al", cubic=True)
job.run()
# Copy selected calculation pr_archive=Project("archive")
job_new=job.copy_to(project=pr_archive)
# Backup selected calculation with all output filespr_archive.pack(destination_path="publish", copy_all_files=True)
# clean up pr_archive.remove(enable=True)
pr_origin.remove(enable=True)
# Restore backup Project(".").unpack(origin_path="publish")
The text was updated successfully, but these errors were encountered:
Pyiron provides a publication template in https://github.com/pyiron/pyiron-publication-template this template is based on the project being archived before. In many cases you might not want to archive all calculation in a given project. So below is a short example code to copy the calculation to an archive project and then pack this project for publication.
The text was updated successfully, but these errors were encountered: