Skip to content

Yaml config override does not change the binding variables in the config file #33

@eugene-yang

Description

@eugene-yang

For config files that use config variables for run name, the overriding variables are not considered when binding the variables.
For example, when running patapsco test_config.yml --set queries.psq.path=dummy.dict and the config file is something like

run:
    name: psq-{queries.psq.path}
....
queries:
    psq:
        path: original.dict

The run name will still be psq-original.dict.

The variable checks also take place before the overriding variables are put into the config object. Ideally, it should be checked after processing the overriding variables.
https://github.com/hltcoe/patapsco/blob/master/patapsco/config.py#L118

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