Skip to content

feat: support macro template using runmacro #23

@ycexiao

Description

@ycexiao

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:

  1. yuchen know little about PDF
  2. yuchen find a macro template in the diffpy discourse
  3. 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>
...
  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions