Skip to content

[Feature request]: Templating With flepimop patch #613

@TimothyWillard

Description

@TimothyWillard

Label

cli, config, enhancement

Priority Label

medium priority

Is your feature request related to a problem? Please describe.

It would be helpful if there was a way to provide templated variables to flepimop patch, either directly as key value pairs or by importing from a YAML file (or similar). Could use jinja2 templates since that is already a dependency of gempyor.

Is your feature request related to a new application, scenario round, pathogen? Please describe.

Would have been extremely helpful with the Flu SMH 2025/26 round.

Describe the solution you'd like

Suppose input.yaml is:

name: 'Example'
start_date: '{{ year }}-01-01'
end_date: '{{ year }}-12-31'

Then calling

flepimop patch --data="year=2025" input.yaml > output.yaml

Would produce a output.yaml file of:

name: 'Example'
start_date: '2025-01-01'
end_date: '2025-12-31'

CLI interface could use some polishing/thinking before implmenting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliRelating to command line interfacesconfigRelating to configuration files or their framework.enhancementRequest for improvement or addition of new feature(s).medium priorityMedium priority.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions