Problem
We are already templating .gr and .cif file to run macro inside diffpy.batchpdfsuite, but this functionality is more suitable to be implemented here.
It will be mainly used by diffpy.batchpdfsuite. But it can also be used by users directly:
Use case:
- yuchen know little about PDF
- yuchen find a macro template in the
diffpy discourse
- yuchen run
diffpy.app runmacro context.yaml --template <template.dp-in> -o output.dp-in # output.dp-in is optional
where context.yaml is
# supported keys described in `template.dp-in` comment
profile: <profile-path>
phase1: <phase1-path>
...
- yuchen get a
output.dp-in file that he can check what's happening if he want.
He also get the results if the template saves the results.
Proposed solution
Problem
We are already templating
.grand.ciffile to run macro insidediffpy.batchpdfsuite, but this functionality is more suitable to be implemented here.It will be mainly used by
diffpy.batchpdfsuite. But it can also be used by users directly:Use case:
diffpydiscoursewhere
context.yamlisoutput.dp-infile that he can check what's happening if he want.He also get the results if the template saves the results.
Proposed solution