Skip to content

Commit f1d07a2

Browse files
committed
fix lint
1 parent 1b48ae6 commit f1d07a2

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

dadapy/metric_comparisons.py

+10-3
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,11 @@ def return_label_overlap_coords(self, labels, coords, k=30):
618618
Returns:
619619
(float): the neighbour overlap of the points
620620
"""
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. \
622623
Use "compute_label_overlap" instead."""
624+
)
625+
623626
assert self.X is not None
624627

625628
X_ = self.X[:, coords]
@@ -648,9 +651,11 @@ def return_overlap_coords(self, coords1, coords2, k=30):
648651
Returns:
649652
(float): the neighbour overlap of the two subspaces
650653
"""
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 \
652656
sets of coordinates and will be removed in a future version of the package. \
653657
Use "compute_data_overlap" instead."""
658+
)
654659

655660
assert self.X is not None
656661

@@ -677,9 +682,11 @@ def return_label_overlap_selected_coords(self, labels, coord_list, k=30):
677682
Returns:
678683
(list(float)): a list of neighbour overlaps of the points
679684
"""
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 \
681687
sets of coordinates and will be removed in a future version of the package. \
682688
Use "compute_data_overlap" instead."""
689+
)
683690
assert self.X is not None
684691

685692
overlaps = []

0 commit comments

Comments
 (0)