Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
owc-software-python owc-software-python
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • bodc
  • owc-software-pythonowc-software-python
  • Merge requests
  • !4

Merged
Created Sep 20, 2019 by edsmall@edsmallContributor

ARGODEV-138 - load_configuration

  • Overview 0
  • Commits 21
  • Pipelines 19
  • Changes 5

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:

  1. Is the function returning the correct type (dict)?
  2. Is the length of the returned dict correct?
  3. 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.

Edited Oct 30, 2019 by edsmall
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: edsmall/set-global-variables