Skip to content

Commit f4845f4

Browse files
authored
Merge branch 'main' into refactor-general-updates
2 parents cc78829 + 036a3dd commit f4845f4

File tree

7 files changed

+8
-12
lines changed

7 files changed

+8
-12
lines changed

src/segmentation_skeleton_metrics/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Package to evaluate a predicted segmentation.
33
"""
44

5-
__version__ = "5.5.9"
5+
__version__ = "5.5.16"

src/segmentation_skeleton_metrics/skeleton_graph.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
@author: Anna Grim
55
66
7-
87
Implementation of a custom subclass of NetworkX.Graph called SkeletonGraph.
98
109
"""

src/segmentation_skeleton_metrics/skeleton_metric.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
@author: Anna Grim
55
66
7-
87
Implementation of class that computes skeleton-based metrics by comparing a
98
predicted neuron segmentation to a set of ground truth graphs.
109

src/segmentation_skeleton_metrics/utils/graph_util.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
@author: Anna Grim
55
66
7-
87
Code for building a custom graph object called a SkeletonGraph and helper
98
routines for working with graph.
109

src/segmentation_skeleton_metrics/utils/img_util.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
@author: Anna Grim
55
66
7-
8-
Code for reading images.
7+
Code for reading and processing images.
98
109
"""
1110

src/segmentation_skeleton_metrics/utils/swc_util.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
@author: Anna Grim
55
66
7-
87
Routines for working with SWC files. An SWC file is a text-based file format
98
used to represent the directed graphical structure of a neuron. It contains a
109
series of nodes such that each has the following attributes:

src/segmentation_skeleton_metrics/utils/util.py

Lines changed: 6 additions & 5 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")
@@ -208,7 +206,7 @@ def list_gcs_filenames(bucket_name, prefix, extension):
208206
Returns
209207
-------
210208
List[str]
211-
Filenames stored at "cloud" path with the given extension.
209+
Filenames stored at the GCS path with the given extension.
212210
"""
213211
bucket = storage.Client().bucket(bucket_name)
214212
blobs = bucket.list_blobs(prefix=prefix)
@@ -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
@@ -501,3 +501,4 @@ def save_results(path, stats):
501501
sheet.write(i + 1, j + 1, round(stats[swc_id][metric], 4))
502502

503503
wb.save(path)
504+

0 commit comments

Comments
 (0)