Turn run_recipes into an importable class #52
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Turned the script format of run_recipes in to an importable class, in preparation for allowing separate directories for different types of simulations (ESO, AIT).
The running of the simulations is unchanged but there is a fairly major reorganization of the code.
run_recipes.py has the same calling syntax as before, but now acts as a wrapper for the class in runRecipes.py.
The command line parameters are now stored in a dictionary in runRecipes.params, rather than a series of individual variables.
updateHeaders has been incorporated into the main routine.
The option --calibFile will write the calibration dictionary to a YAML file in the same form as the input YAML.
The DIT field in thex output file names has been removed as unneeded.
The validation has been updated to include the list of filter and ndfilter names.
There are now methods
parseCommandLine(args) - parse the command line options