Skip to content

Commit 361ea15

Browse files
committed
resolve conflicts
2 parents 966cddb + 1da4a14 commit 361ea15

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

malariagen_data/anoph/xpehh.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,12 @@ def plot_xpehh_gwss_track(
296296
inline_array=inline_array,
297297
)
298298

299+
if len(x) == 0:
300+
raise ValueError(
301+
"No XP-EHH values remain after filtering. "
302+
"Try relaxing filter_min_maf or min_ehh parameters."
303+
)
304+
299305
# determine X axis range
300306
x_min = x[0]
301307
x_max = x[-1]

malariagen_data/anopheles.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,12 @@ def plot_ihs_gwss_track(
950950
inline_array=inline_array,
951951
)
952952

953+
if len(x) == 0:
954+
raise ValueError(
955+
"No iHS values remain after filtering. "
956+
"Try relaxing filter_min_maf or min_ehh parameters."
957+
)
958+
953959
# determine X axis range
954960
x_min = x[0]
955961
x_max = x[-1]

0 commit comments

Comments
 (0)