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

Handle none in toml or no value defined for a parameter during save #267

Open
tjadevries opened this issue Nov 23, 2024 · 0 comments
Open

Comments

@tjadevries
Copy link
Collaborator

Actually two problems that can be solved together:

  • in toml, there is no way to save a None value (see e.g. Add a none type toml-lang/toml#921 ); we need a way to handle a config where a parameter has value None
  • we are going to provide a convenience function to save a parameter file to facilitate the user (especially useful for config); if a parameter does not have a default value, then it's section cannot be instantiated and yet we would like to be able to save a file to start with

Solution: add a comment line/section that states either parameter = None or parameter =

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant