Skip to content

Commit

Permalink
pass doctests w latest numpy version
Browse files Browse the repository at this point in the history
  • Loading branch information
jbloom committed Aug 30, 2024
1 parent bac8e77 commit 72151b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions polyclonal/polyclonal.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ class Polyclonal:
>>> model_data.mutations
('M1C', 'G2A', 'A4K', 'A4L')
>>> dict(sorted(model_data.mutations_times_seen.items()))
>>> {key: int(val) for (key, val) in sorted(model_data.mutations_times_seen.items())}
{'A4K': 4, 'A4L': 3, 'G2A': 6, 'M1C': 6}
The activities are evenly spaced from 1 to 0, while the mutation escapes
Expand Down Expand Up @@ -1652,8 +1652,7 @@ def _scaled_pseudo_huber(delta, r, calc_grad=False):
... lambda r: Polyclonal._scaled_pseudo_huber(2, r, False)[0],
... lambda r: Polyclonal._scaled_pseudo_huber(2, r, True)[1],
... [2])
>>> err < 1e-7
True
>>> assert err < 1e-7
"""
if delta <= 0:
Expand Down

0 comments on commit 72151b1

Please sign in to comment.