Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why don't we have import_dataset.sh inside pyiron? #18

Closed
samwaseda opened this issue May 23, 2022 · 2 comments
Closed

Why don't we have import_dataset.sh inside pyiron? #18

samwaseda opened this issue May 23, 2022 · 2 comments

Comments

@samwaseda
Copy link
Member

#!/bin/bash
cd pyiron
for ds in $(ls calculation/*.tar.gz); do
cp ${ds} .
cp calculation/export.csv .
file=$(basename ${ds} .tar.gz)
python << EOF
from pyiron_base import Project
Project("calculation").unpack("${file}")
EOF
rm $(basename ${ds})
rm export.csv
done

I think this functionality is useful in a general way. Why don't we have it inside the standard pyiron package?

@samwaseda
Copy link
Member Author

Ah sorry I just saw that pack and unpack were solidly available inside pyiron XD. I guess it's a super nice feature that we should promote more.

@jan-janssen
Copy link
Member

Yes, the rest is just some magic to copy any file no matter the file name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants