pyiron_base icon indicating copy to clipboard operation
pyiron_base copied to clipboard

bug in project packing

Open jyang2009 opened this issue 11 months ago • 1 comments

Dear all,

I've recently found a bug in the pack function of the pyiron project. What I wanted to do was to select a few jobs from an existing project, copy them to a new project, and then pack the new project. Here is how I did it: pr_old = Project('Mg_water_equilibrium') pr_archive = Project('../../../ptmp/pyiron-publication-template/archive') job_new = job.copy_to(project=pr_archive) pr_archive.pack(destination_path="../../../ptmp/pyiron-publication-template/save", copy_all_files=True) Here the archive project path should be '/cmmc/u/jyang/ptmp/pyiron-publication-template/archive, however, the pack functions tries to read the files from the folder of the notebook (/cmmc/u/jyang/pyiron/Mg/Ca_in_Mg_0001) and I get the following error: Screen Shot 2024-03-28 at 3 57 25 PM

jyang2009 avatar Mar 28 '24 14:03 jyang2009

@jyang2009 I implemented a fix for this issue in https://github.com/pyiron/pyiron_base/pull/1401 . Can you test it?

jan-janssen avatar Mar 28 '24 15:03 jan-janssen