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 configuration #44

Merged
merged 45 commits into from
Apr 18, 2024
Merged

YAML configuration #44

merged 45 commits into from
Apr 18, 2024

Conversation

yoctoyotta1024
Copy link
Owner

Use YAML libraries to write and read in CLEO configuration rather than .txt files:
major:

  • include yaml-cpp external library in cmake build
  • replace every config .txt file with equivalent .yaml file
  • pass new config to constructors in main programs
  • re-write pySD functions for reading config in python using ruamel.yaml package

minor:

  • some re-naming of variables e.g. W_AVG ->W_avg
  • better choice of types for some config variables e.g. string -> filesystem paths
  • distinction between optional and required configuration variables. Optional are only needed for som model setups whereas required are always needed.
  • configuration of independent things held in individual structs, e.g. condensation variables contained in YAML condensation node are saved in config.optional.condensation member

@yoctoyotta1024 yoctoyotta1024 merged commit f47b98e into main Apr 18, 2024
6 checks passed
@yoctoyotta1024 yoctoyotta1024 deleted the config branch April 18, 2024 08:45
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

Successfully merging this pull request may close these issues.

1 participant