ARGODEV-138 - load_configuration
Jira Issue
https://jira.ceh.ac.uk/browse/ARGODEV-138
Python Implementation
The load_configuration
function simply returns a dictionary made up of pairs (keys and values). This dictionary contains the system configuration to run the analysis. The user can change the values, but should not change the keys.
Testing
Three simple tests have been written:
- Is the function returning the correct type (dict)?
- Is the length of the returned dict correct?
- Do all the keys have a corresponding value (non-empty)?
Old Matlab Implementation
The user would create a .txt file, where they would store all of the set up for the analysis. The load_configuration
function would then open the file, read it line by line, storing pairs of keys and values into a struct. It would then close the file and return the new struct of pairs.