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

Params rework #84

Merged
merged 5 commits into from
Feb 1, 2024
Merged

Params rework #84

merged 5 commits into from
Feb 1, 2024

Conversation

smutch
Copy link
Owner

@smutch smutch commented Feb 1, 2024

This adds an optional extra layer of parameter files to try and reduce duplication. Parameters are read from the params file given on the command line, a defaults file (applicable to all simulations), and finally a simulation dependent parameters file (if requested). The priority is

  1. command line specified file
  2. default params file
  3. simulation specific params file

where the lowest number wins. i.e if you set a parameter in the command line specified file and the defaults params file then the value from the former is what is used.

Some of the simulations files still need to be updated but wanted to put this out there for comment first.

@smutch smutch requested a review from EMventura February 1, 2024 00:02
@smutch smutch requested a review from qyx268 as a code owner February 1, 2024 00:02
@s-balu
Copy link
Collaborator

s-balu commented Feb 1, 2024

This is a very good upgrade, thanks @smutch!

qyx268
qyx268 previously approved these changes Feb 1, 2024
input/params/defaults.par Show resolved Hide resolved
input/params/input.par Show resolved Hide resolved
input/params/input.par Show resolved Hide resolved
@smutch smutch merged commit d3e806c into develop Feb 1, 2024
2 checks passed
@smutch smutch deleted the params_rework branch February 1, 2024 02:44
@smutch
Copy link
Owner Author

smutch commented Feb 1, 2024

Crap! I didn't see all of your comments until after I hit merge! Sorry @qyx268 . I'll revert!

@smutch smutch restored the params_rework branch February 1, 2024 02:47
@qyx268
Copy link
Collaborator

qyx268 commented Feb 1, 2024

I was going to say no need to revert. but i saw u did it already. the comments are all minor. just add a header in maybe input.par to instruct how this works. i know you will have it in HOWTO, but it might be worth having it there too.

@smutch
Copy link
Owner Author

smutch commented Feb 1, 2024

I will directly push to develop to address the above comments. Sorry again for missing these!

@qyx268
Copy link
Collaborator

qyx268 commented Feb 1, 2024

np!

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.

4 participants