@@ -618,8 +618,11 @@ def return_label_overlap_coords(self, labels, coords, k=30):
618
618
Returns:
619
619
(float): the neighbour overlap of the points
620
620
"""
621
- assert False , """This function is outdated and will be removed in a future version of the package. \
621
+ raise AssertionError (
622
+ """This function is outdated and will be removed in a future version of the package. \
622
623
Use "compute_label_overlap" instead."""
624
+ )
625
+
623
626
assert self .X is not None
624
627
625
628
X_ = self .X [:, coords ]
@@ -648,9 +651,11 @@ def return_overlap_coords(self, coords1, coords2, k=30):
648
651
Returns:
649
652
(float): the neighbour overlap of the two subspaces
650
653
"""
651
- assert False , """This function is a wrong implementation of the overlap between two \
654
+ raise AssertionError (
655
+ """This function is a wrong implementation of the overlap between two \
652
656
sets of coordinates and will be removed in a future version of the package. \
653
657
Use "compute_data_overlap" instead."""
658
+ )
654
659
655
660
assert self .X is not None
656
661
@@ -677,9 +682,11 @@ def return_label_overlap_selected_coords(self, labels, coord_list, k=30):
677
682
Returns:
678
683
(list(float)): a list of neighbour overlaps of the points
679
684
"""
680
- assert False , """This function is a wrong implementation of the overlap between two \
685
+ raise AssertionError (
686
+ """This function is a wrong implementation of the overlap between two \
681
687
sets of coordinates and will be removed in a future version of the package. \
682
688
Use "compute_data_overlap" instead."""
689
+ )
683
690
assert self .X is not None
684
691
685
692
overlaps = []
0 commit comments