Closed mikibonacci closed 2 months ago
thanks a lot @mikibonacci
to make it easier to reproduce can you copy your script here?
--suppose I have the pk
of a successful PwCalculation
--
Suppose you have the already done PwCalculation (scf).
We use PwBaseWorkChain to be faster in generating the builder (we use the get_builder_from_protocol
), and also we don't put nscf in the calculation, we just run another scf (so we avoid to modify the parameters dictionary - does not matter for this test):
from aiida.engine import run, submit
from aiida import orm
from aiida_quantumespresso.workflows.pw.base import PwBaseWorkChain
scf = orm.load_node(pk) # we load the scf PwCalculation
# now we generate the builder for the new run
builder = PwBaseWorkChain.get_builder_from_protocol(
code = scf.inputs.code,
structure = scf.inputs.structure,
protocol='fast',
)
# crucial: here we set the parent folder
builder.pw.parent_folder = scf.outputs.remote_folder
# metadata, if needed
builder.pw.metadata = scf.inputs.metadata
run = submit(builder)
print(f'Running another scf PwBaseWorkChain at {run.pk}')
Thanks a lot @mikibonacci for reporting this,
As we understood together, the problem was aiida-quantumespresso
is making remote_copy_list with glob patterns,
I added an update on aiida-firecrest
right now on my fork, which can support this:
https://github.com/aiidateam/aiida-firecrest/commit/f7519a4478a70f786b63d164afc177202d7ff265
Just tested now, and the problem is resolved.
Thanks a lot @khsrali ! I will test also myself as soon as I can, but if for you is good, great!
I had an issue in running some
aiida-quantumespresso
scf+nscf steps. This is related to the copy of the parentremote_folder
from scf (PwCalculation
done successfully) remote folder to the nscf (PwCalculation
just submitted). Basically it seems that the/out
cannot be copied to the new folder.To reproduce the problem is sufficient to set a builder for an nscf
PwCalculation
, putting also aremote_folder
asbuilder.parent_folder
(remote_folder
being output of the scfPwCalculation
), ans submit it.Pinning @khsrali