Skip to content

Commit

Permalink
Fixed ibd.py CLI so that it works with the latest argument inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
gtsambos authored and mergify[bot] committed Sep 13, 2022
1 parent 96365a9 commit 365092c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/tests/ibd.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License
#
# Copyright (c) 2020-2021 Tskit Developers
# Copyright (c) 2020-2022 Tskit Developers
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -293,8 +293,8 @@ def passes_filters(self, a, b, left, right):
else:
max_time = args.max_time[0]

s = IbdFinder(ts, samples=ts.samples(), min_span=min_span, max_time=max_time)
all_segs = s.find_ibd_segments()
s = IbdFinder(ts, min_span=min_span, max_time=max_time)
all_segs = s.run()

if args.samples is None:
print(all_segs)
Expand Down

0 comments on commit 365092c

Please sign in to comment.