Add post-processing base workchain#1174
Conversation
0d1cf04 to
5431b21
Compare
|
Thanks @edan-bainglass! Will do a full review later, but first some quick questions (while you are potentially still awake 😉):
|
|
pp.x does not use protocols. And yes, it is relatively simpler. I used the get from quantity method to provide a simple interface for constructing the inputs by specifying what you want to compute. However, pp.x salad takes settings, which can be used to modify the inputs. This would be there next thing to implement, in a later PR. I'd also like @AndresOrtegaGuerrero to have a look, to get a sense of the direction this would go, and indeed, of a restart can ever be useful. But since this is entirely new, starting small should be fine. Let's see. |
|
As @mbercx pointed out, the post-processing (pp) calculation does not benefit from a restart. However, what I do find useful is having a workflow that can generate as many plots or properties as requested, while also collecting all the relevant outputs in one place. Since we already have access to the wavefunction, the most efficient approach is to extract everything in a single run. I could imagine using the overrides mechanism to specify additional properties. Given that there are many possible properties—each depending on knowledge of both the wavefunction and the system—it’s difficult to define fixed protocols in advance. What might be valuable, though, is to include error checks. For example, based on the properties requested and the parameters of the PwCalculation that was passed, the workflow could verify whether the settings for pp.x are compatible with those of the preceding PwCalculation. |
|
Thanks for the comments @AndresOrtegaGuerrero! Valuable info.
I like that idea. 👍 Maybe the workflow has a
I can see how the concept of "protocols" as we defined them for the
I suppose what you mean here is validation? That could certainly be possible, both for the What I would propose is to push the @edan-bainglass you mentioned this was important for a PREMISE deliverable. What exactly do you need for this? Would the above suggestion work for your use case as well? E.g. having the |
|
Fantastic input from both. Thank you 🙏🙏 @mbercx for PREMISE, I developed a As for the name, maybe |
|
Great, thanks @edan-bainglass! Also glad to see some activity on the common workflows. Happy to prioritize review once it's ready. |
|
@edan-bainglass apologies, I only now noticed this PR was into the |
|
Alright, |
|
Thanks @mbercx. I'll do this tomorrow morning. |
This PR registers a simple base restart wrapper on the
PpCalculation(simplified version of the one implemented by @AndresOrtegaGuerrero here. We can always expand on it down the road. Mostly opening this PR to tie together several components required for a PREMISE deliverable.Supersedes #1173