44
55logger = logging .getLogger (__name__ )
66
7- # using Sphinx docstrings style: <https://sphinx-rtd-tutorial .readthedocs.io/en/latest/docstrings .html>
7+ # using numpy style docstrings style: <https://numpydoc .readthedocs.io/en/stable/format .html>
88
99def perform_action (args , input_data ):
1010 """Perform some action
1111
1212 Following the principle of separation of concerns, this method only
1313 performs the action, but does not have any input or output.
1414
15- :param args: argparse object with many possible members based on argparse configuration
16- :type args: argparse.ArgumentParser
17- :param input_data: dictionary of input data read from YAML file
18- :type input_data: dict
19- :returns: string that describes the input quantities
20- :rtype: str
15+ Parameters
16+ ----------
17+ args : argparse.ArgumentParser
18+ argparse object with many possible members based on argparse
19+ configuration
20+ input_data : dict
21+ dictionary of input data read from YAML file
22+
23+ Returns
24+ -------
25+ str
26+ string that describes the input quantities
2127 """
2228
2329 return f"Some results based on args:\n { args } \n and input_data:\n { input_data } \n "
@@ -29,12 +35,18 @@ def report_results(args, input_data, results):
2935 Following the principle of separation of concerns, this method only
3036 performs output and does not do any actions.
3137
32- :param args: argparse object with many possible members based on argparse configuration
33- :type args: argparse.ArgumentParser
34- :param input_data: dictionary of input data read from YAML file
35- :type input_data: dict
38+ Parameters
39+ ----------
40+ args : argparse.ArgumentParser
41+ argparse object with many possible members based on argparse
42+ configuration
43+ input_data : dict
44+ dictionary of input data read from YAML file
3645
37- :returns: None
46+ Returns
47+ -------
48+ unknown
49+ None
3850 """
3951
4052 logger .info (
@@ -50,8 +62,10 @@ def task_args():
5062 `filename` : required positional argument
5163 `verbose` : optional keyword argument
5264
53- :returns: argparse object with various members depending on configuration
54- :rtype: argparse.ArgumentParser
65+ Returns
66+ -------
67+ argparse.ArgumentParser
68+ argparse object with various members depending on configuration
5569 """
5670
5771 parser = argparse .ArgumentParser (
@@ -75,10 +89,17 @@ def read_input(input_filename):
7589
7690 inputs
7791 -------
78- :param input_filename: a string with a filename/path accessible from the current location
79- :type input_filename: str
80- :returns: the data from the YAML file.
81- :rtype: dict
92+
93+ Parameters
94+ ----------
95+ input_filename : str
96+ a string with a filename/path accessible from the current
97+ location
98+
99+ Returns
100+ -------
101+ dict
102+ the data from the YAML file.
82103 """
83104
84105 with open (input_filename , "r" ) as yaml_file :
0 commit comments