Skip to content

Commit

Permalink
Small example change
Browse files Browse the repository at this point in the history
  • Loading branch information
benjeffery committed Jan 27, 2025
1 parent 90c8ce1 commit 0caf499
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion msprime/mutations.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def gamma_microsat(m, i, j, lo, hi):
:param int hi: upper bound of microsat repeat length distribution
"""
num = m * (1 - m) ** (np.abs(i - j) - 1)
if lo <= i < j <= hi:
if lo <= i < j >= hi:
denom = 1 - (1 - m) ** (hi - i)
elif lo <= j < i <= hi:
denom = 1 - (1 - m) ** (i - lo)
Expand Down
2 changes: 1 addition & 1 deletion msprime/provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_provenance_dict(parameters=None):
tskit provenance schema.
"""
document = {
"schema_version": "1.0.0",
"schema_version": "1.0.1",
"software": {"name": "msprime", "version": __version__},
"parameters": parameters,
"environment": get_environment(),
Expand Down

0 comments on commit 0caf499

Please sign in to comment.