How to find the working directory of an electron to facilitate file transfers? #1678
Unanswered
Andrew-S-Rosen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a lattice with two electrons. The two electrons are run using the
create_unique_workdir=True
configuration option such that they aren't writing files to the same directory. Note that this unique working directory ultimately is based on the electron's UUID.What is the best way to transfer a file from the directory of electron 1 after it finishes to the folder of electron 2 before it starts? I know that I can use the
FileTransfer
object, but this requires the path to be known a priori.So, I guess this boils down to: is there a way for me to get the working directory for an electron if it is only determined at dispatch time?
I'd be happy to write a small working example here if pointed in the right direction!
For the quantum-curious, what I'm trying to do in practice is copy the output wavefunction from job 1 to the working directory of job 2 so that it can be used as an initial guess.
Edit: @jackbaker1001, have you had to run into this kind of situation with the
slurm-covalent-plugin
and the kinds of calculations you have run? I figure you likely know what I'm trying to get at it with this.Beta Was this translation helpful? Give feedback.
All reactions