-
Notifications
You must be signed in to change notification settings - Fork 4
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
5a Clean up Simulation parameters #50
Comments
Hi There, yes I fully agree with you! We should do this indeed. As the env files are currently necessary for the HPC experiments and this should not be changed due to our limited possibilities of deploying the software in singularity containers, I would go somehow along the line of:
This was the idea with the playground tool default_params thing as well, but unfortunately I didn't really have the capacity to finish that much, so this higher level translation of env parameters is mixed with reading env parameters as they are which is super messy :( What do you think, do you have maybe another suggestion? I am really open to that until we can keep the central .env file. |
I would suggest using a great Pydantic library (https://pydantic-docs.helpmanual.io/) to handle the settings. I don't think this contradicts the requirement to keep the I can open a PR with a new configuration and we can continue working on it in that PR. |
It looks awesome from a first quick 👀. If it allows us to clean up this mess and keep the .env framework in place it would be a prefect solution. Do you have experience with it? |
Yep, I have some experience with Pydantic and I think this is a great tool that can help clean up settings. |
Hey, I think it makes sense to refactor the simulation parameters a bit because at the moment I don't understand how I can define and manipulate them. My main problem is that there are several places where parameters are defined (e.g.,
.env
file,playgroundtool
,cs_playgroundtool
) and it's not easy for me to manipulate the default parameters. I think the problem got worse when we have multiple projects with different.env
files. It seems to me that this issue has already been addressed in this PR #48. But I believe we can do a major refactoring in a separate PR (or multiple PRs). @mezdahun let me know what you think and how you think I can proceed with this issue.The text was updated successfully, but these errors were encountered: