Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose individual argument parsing for overwriting #86

Open
Effervex opened this issue Apr 28, 2022 · 1 comment
Open

Expose individual argument parsing for overwriting #86

Effervex opened this issue Apr 28, 2022 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Effervex
Copy link

This issue is similar to #71, though I believe different enough for a separate issue.

The use-case is as follows: a previous configuration is loaded from json file, with arguments filled in appropriately. However, I would like to update some configuration parameters individually.

So, rather than copy the saved json and edit the values manually, I'd instead like to see a load() method invocation followed by a method to parse individual parameters to defined arguments.

This is currently not possible, as missing non-optional arguments that have not been specified (but have been defined in the loaded json) produce errors.

@swansonk14 swansonk14 added enhancement New feature or request good first issue Good for newcomers labels Jun 25, 2023
@swansonk14
Copy link
Owner

Hi @Effervex,

Thank you for raising this issue! We think this is a good idea and propose to implement it by adding a flag to load and from_dict and modifying this line to allow the user to suppress the error when required arguments are missing.

Best,
Jesse and Kyle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants