I am not too intimitely familiar with the aiida-vasp
plugin and certainly not the immigrator. I just had a look at its implementation and it seems that it is a custom implementation specifically for VASP.
Historically, aiida-quantumespresso
also provided such a custom implementation for the PwCalculation
. This was still based on AiiDA v0.x however and wasn’t maintained, so it fell by the wayside.
I then drew up this AEP (an AiiDA Enhancement Proposal) to provide a generic import (or immigration, as it used to be called) process for existing calculations that were run outside of AiiDA. This proposal was accepted and I implemented it in AiiDA v2.0. This is the generic interface that aiida-quantumespresso
implements.
The advantage of such a generic approach is that if all plguins use that instead of a custom solution, the procedure for calculation importing will be identical for all plugins.
That being said, If aiida-vasp
doesn’t have the generic solution yet and their custom solution works for the time being, then I would definitely use that for now. Again, I cannot comment on the correctness of your approach, but you can simply inspect the results to see if data that you expect is there. You could do something like the following. Take the pk of one of the imported calculations:
verdi node repo dump <PK> input_files
# this should dump the raw input files to the local directory `input_files`
verdi process show <PK>
# This should show all the input and output nodes
verdi node repo dump <PK> output_files
# Replace the pk with value of the `retrieved` output node shown in `verdi process show` output
# This should dump output files that were retrieved to local dir
You can inspect the contents of all other inputs and output nodes using the Python API if you want. If the contents look reasonable, I think the import can be considered successful.