Skip to content

User config selection should have priority #65

Open
@sthartman

Description

@sthartman

Hello,
There are currently two ways to set certain configuration variables such as keep_data_order: 1) as a command-line argument, or 2) in the config.json file. However, the way that the train_folder script is set up, changing these variables in the config.json file has no effect, because they will be overridden by the default value of the command-line argument.

When that happens, the program actually over-writes the original config.json to make it look like the variable was never changed there in the first place. Forgetful users (me) will think that was an oversight on their part, edit the config.json file again as desired, and re-run with the same result several times before figuring out what's going on.

There are a couple of ways to avoid this problem. I assume the simplest would be to remove these variables from config.json, leaving the command-line argument as the only way to change them. Or if it's desirable to have these variables be changed from either direction, I think the config.json should have priority over the default value for the command line argument, and if the user explicitly sets a command line argument which conflicts with config.json they should get an error instead of a silent over-write.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions