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

YAML - assign non-used entries with null (impedance Notebook) #9

Open
vwvbrand opened this issue Oct 30, 2024 · 0 comments
Open

YAML - assign non-used entries with null (impedance Notebook) #9

vwvbrand opened this issue Oct 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@vwvbrand
Copy link
Contributor

For the configuration file with ecological parameters of impedance, it is suggested to automatically assign non-used parameters with 'null'
For example, the current YAML block

vrt_railways:
  decline_type: exp_decline
  enabled: true
  exp_decline:
    lambda_decay: 200
  prop_decline:
    k: 10

should turn into:

vrt_railways:
  decline_type: exp_decline
  enabled: true
  exp_decline:
    lambda_decay: 200
  prop_decline:
    k: null

, if user chooses 'decline_type'.

It will improve the readability of YAML file and filter out non-required parameters for user because only one value is required - either lambda_decay or k_value.

@vwvbrand vwvbrand added the enhancement New feature or request label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant