Skip to content

Commit d89a6d8

Browse files
DOC: minor doc_string changes to check write access (#70)
* make small change to test permissions * Update test_get_chunks.py * updated docstring --------- Co-authored-by: Aditi Juneja <[email protected]> Co-authored-by: Schefflera-Arboricola <[email protected]>
1 parent 16ae504 commit d89a6d8

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

_nx_parallel/update_get_info.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313

1414

1515
def get_funcs_info():
16-
"""Return a dictionary with information about all the functions."""
16+
"""Return a dictionary with function names as keys and function's details as values.
17+
The function's details include the URL to the function in the source code, the parallel
18+
computation description, and the additional parameters description."""
1719
funcs = {}
1820

1921
nx_parallel_dir = os.path.join(os.getcwd(), "nx_parallel")

nx_parallel/tests/test_get_chunks.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010

1111

1212
def get_all_functions(package_name="nx_parallel"):
13-
"""Returns a dictionary where the keys are the function names in a given Python package, and the values are dictionaries containing the function's keyword arguments and positional arguments."""
13+
"""Returns a dict keyed by function names to its arguments.
14+
15+
This function constructs a dictionary keyed by the function
16+
names in the package `package_name` to dictionaries containing
17+
the function's keyword arguments and positional arguments.
18+
"""
1419
package = importlib.import_module(package_name)
1520
functions = {}
1621

@@ -23,7 +28,7 @@ def get_all_functions(package_name="nx_parallel"):
2328

2429

2530
def get_functions_with_get_chunks():
26-
"""Returns a list of functions with the `get_chunks` kwarg."""
31+
"""Returns a list of function names with the `get_chunks` kwarg."""
2732
all_funcs = get_all_functions()
2833
get_chunks_funcs = []
2934
for func in all_funcs:

0 commit comments

Comments
 (0)