-
Notifications
You must be signed in to change notification settings - Fork 3
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
Issue 137: unify argument patterns #138
Conversation
The positional form for
An easy fix committed here was to convert to string at this point. |
Last push gave error
This seems unconnected to last commit (which fixed an error). |
After some inconsequential changes to trigger CI this resolved. @gvegayon should we expect stochastic failure in the container build CI? |
This should be sequenced ahead of #117 now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @SamuelBrand1!
* add model_runs as additional hierarchy * fix default tag * fix path in postprocess_state_forecast.R * remove unused base_dir definition * correct_path in timeseries_forecasts * Issue 137: unify argument patterns (#138) * add check to all subprocess commands (#143) * Organize helper functions / utilities (#141) * provide missing namespace * merge main into model_runs_2 (#146) * Issue 137: unify argument patterns (#138) * add check to all subprocess commands (#143) * Organize helper functions / utilities (#141) --------- Co-authored-by: Samuel Brand <48288458+SamuelBrand1@users.noreply.github.com> Co-authored-by: Dylan H. Morris <dylanhmorris@users.noreply.github.com> * load required packages * more namespace fixes * use hewr functionality --------- Co-authored-by: Samuel Brand <48288458+SamuelBrand1@users.noreply.github.com> Co-authored-by: Dylan H. Morris <dylanhmorris@users.noreply.github.com>
* add model_runs as additional hierarchy * fix default tag * fix path in postprocess_state_forecast.R * remove unused base_dir definition * correct_path in timeseries_forecasts * Issue 137: unify argument patterns (#138) * add check to all subprocess commands (#143) * Organize helper functions / utilities (#141) * provide missing namespace * merge main into model_runs_2 (#146) * Issue 137: unify argument patterns (#138) * add check to all subprocess commands (#143) * Organize helper functions / utilities (#141) --------- Co-authored-by: Samuel Brand <48288458+SamuelBrand1@users.noreply.github.com> Co-authored-by: Dylan H. Morris <dylanhmorris@users.noreply.github.com> * load required packages * more namespace fixes * use hewr functionality * first collate plots changes * use parent dir for saving by default * put figures in figures dir * update score tables collation --------- Co-authored-by: Samuel Brand <48288458+SamuelBrand1@users.noreply.github.com> Co-authored-by: Dylan H. Morris <dylanhmorris@users.noreply.github.com>
This draft PR ultimately aims to close #137.
Lists of scripts
These are the scripts to bring into common pattern as described in #137. In this case "script" means a file that is designed to have its code executed with a combination of positional and named args.
I've restricted to scripts where there is an associated bash shell script. Other scripts have patterns like input and output, or seem to have positional
disease
arguments, and these are unchanged in this PR.Python scripts
fit_model.py
generate_predictive.py
R scripts
postprocess_state_forecast.R
score_forecast.R
Bash scripts
loop_fit.sh
loop_generate_predictive.sh
loop_postprocess.sh
loop_score.sh
Testing
Where possible I've adapted the experimental data generation from #117 and #131 to check that scripts still run via shell script calls on test data. But only for functions in
loop_fit.sh
andloop_generate_predictive.sh
so far.