Skip to content

Commit 77f8928

Browse files
authored
linting
1 parent 86038f5 commit 77f8928

File tree

1 file changed

+4
-4
lines changed
  • src/segmentation_skeleton_metrics/utils

1 file changed

+4
-4
lines changed

src/segmentation_skeleton_metrics/utils/util.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
@author: Anna Grim
66
77
8-
98
Code for helper routines.
109
1110
"""
@@ -35,7 +34,7 @@ def mkdir(path, delete=False):
3534
Path of directory to be created.
3635
delete : bool, optional
3736
Indication of whether to delete directory at path if it already
38-
exists. The default is False.
37+
exists. Default is False.
3938
"""
4039
if delete:
4140
rmdir(path)
@@ -66,7 +65,7 @@ def list_dir(directory, extension=None):
6665
directory : str
6766
Path to directory to be searched.
6867
extension : str, optional
69-
Extension of filenames to be returned. The default is None.
68+
Extension of filenames to be returned. Default is None.
7069
7170
Returns
7271
-------
@@ -116,7 +115,6 @@ def read_zip(zip_file, path):
116115
-------
117116
str
118117
Contents of a TXT file.
119-
120118
"""
121119
with zip_file.open(path) as f:
122120
return f.read().decode("utf-8")
@@ -438,6 +436,8 @@ def kdtree_query(kdtree, xyz):
438436
439437
Parameters
440438
----------
439+
kdtree : scipy.spatial.KDTree
440+
KD-Tree to be searched.
441441
xyz : ArrayLike
442442
Coordinate to be queried.
443443

0 commit comments

Comments
 (0)