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

Config streamlining #8

Open
2 of 3 tasks
rdPatmore opened this issue Feb 2, 2024 · 0 comments
Open
2 of 3 tasks

Config streamlining #8

rdPatmore opened this issue Feb 2, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rdPatmore
Copy link
Contributor

rdPatmore commented Feb 2, 2024

At present, each directory has a collection of config files: config.py, config.sh, lotus_config.sh, spice_config.sh. There is repitition between files and having bash + python handelling is convoluted.

I am proposing to streamline this process by creating a system of one centralised config file, using python. Functions within that python script can replicate the unique path definitions required by each analysis script. The process for this remapping is as follows:

  • Deploy NEMO_validation as a package to simplify imports across the directories.
  • Create a centralised location for the existing config files
  • Move shell scripting into config.py to remove the need for manually exporting paths
    • create master function for common code across all _config.sh files
    • create a function associate with unique elements of each _config.sh file
    • create calls to master and unique functions withing analysis scripts
    • add machine detection
@rdPatmore rdPatmore added the enhancement New feature or request label Feb 2, 2024
@rdPatmore rdPatmore self-assigned this Feb 2, 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