Starting workchain from a given calculation and change selected parameters

Hi there,

I’m sure this has been asked 100+ times, but I could not find the relevant post.

I would like to make a workchain that starts from a given calcjob, i.e. it uses the same inputs and the produced temporary files (namely the wavefunctions) and creates new calculations by changing specific input parameters one at a time.

I know I cannot start from the Calcjob node itself, so I wonder how you suggest to proceed:

  • expose the input for the calculation, copy all inputs (including metadata) outside the workchin and add as a second input for the remote folder?
  • use the uuid as input? This would allow me to use calc.get_builder_restart() that is ideal for the task I described. But a uuid of a calcjob as input looks a bit ugly, right?
  • other options?

Thanks!