Skip to content

Commit

Permalink
add time assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbin973 committed Dec 18, 2024
1 parent 7ca6452 commit 587409b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/tskit/trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -8751,6 +8751,7 @@ def pca(
if time_window is None:
tree_sequence_low, tree_sequence_high = None, self
else:
assert time_windows[0] < time_windows[1], "The second argument should be larger."
tree_sequence_low, tree_sequence_high = \
self.decapitate(time_window[0]), self.decapitate(time_window[1])

Expand Down

0 comments on commit 587409b

Please sign in to comment.