Skip to content

Commit

Permalink
Merge pull request #194 from gekkonid/py311
Browse files Browse the repository at this point in the history
fixes for python 3.11
  • Loading branch information
ryanlayer authored Apr 16, 2024
2 parents dfc8609 + 8e5f9c9 commit 2929e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samplot/samplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def sample_normal(max_depth, pairs, z):
inside_norm[read_name] = pair

if len(inside_norm) > max_depth:
for read_name in random.sample(inside_norm.keys(), max_depth):
for read_name in random.sample(list(inside_norm.keys()), max_depth):
sampled_pairs[read_name] = inside_norm[read_name]
else:
for read_name in inside_norm:
Expand Down

0 comments on commit 2929e4a

Please sign in to comment.