Skip to content

Commit

Permalink
Minor edits in documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
vrettasm committed Aug 3, 2020
1 parent 4f9a14e commit b150d25
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions code/berkeley_hydro_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,19 @@

def validateInputParametersFile(filename):
"""
Validates an input (json) file to check if it contains the required keys.
It does not validate the values of the keys.
Validates an input (json) file to check if
it contains the required keys. It does not
validate the values of the keys.
:param filename: Is a "Path" object that contains the input model parameters
for the simulation.
:param filename: Is a "Path" object that
contains the input model parameters for
the simulation.
:return: A dictionary loaded from the input file.
:return: A dictionary loaded from the input
file.
:raises ValueError: if a keyword is missing from the file.
:raises ValueError: if a keyword is missing
from the file.
"""

# Import locally the json package.
Expand Down Expand Up @@ -60,12 +64,14 @@ def validateInputParametersFile(filename):
# Main function.
def main(params_file=None, data_file=None):
"""
As the name suggests, this is the main function that is called to initiate the
simulation run.
As the name suggests, this is the main function
that is called to initiate the simulation run.
:param params_file: (string) that points to the input file for the parameters.
:param params_file: (string) that points to the
input file for the parameters.
:param data_file: (string) that points to the input file for the water data.
:param data_file: (string) that points to the input
file for the water data.
:return: None.
"""
Expand Down

0 comments on commit b150d25

Please sign in to comment.