File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/segmentation_skeleton_metrics/utils Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 55@author: Anna Grim
6677
8-
98Code 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
You can’t perform that action at this time.
0 commit comments