Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#129)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored May 24, 2021
1 parent f2c4564 commit d745885
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ repos:
- id: text-unicode-replacement-char
exclude_types: [jupyter]
- repo: https://github.com/asottile/pyupgrade
rev: v2.16.0
rev: v2.18.2
hooks:
- id: pyupgrade
args: [--py36-plus]
Expand Down Expand Up @@ -76,7 +76,7 @@ repos:
Pygments,
]
- repo: https://github.com/nbQA-dev/nbQA
rev: 0.8.1
rev: 0.9.0
hooks:
- id: nbqa-black
- id: nbqa-pyupgrade
Expand Down
2 changes: 1 addition & 1 deletion src/sid/matching_probabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,6 @@ def _generate_einsum_signature(n_trans_prob):
letters = string.ascii_letters[:n_letters]

inputs = [letters[i : i + 2] for i in range(0, len(letters), 2)]
result = ["".join([duo[i] for duo in inputs]) for i in range(len(inputs[0]))]
result = ["".join(duo[i] for duo in inputs) for i in range(len(inputs[0]))]

return ", ".join(inputs) + " -> " + "".join(result)

0 comments on commit d745885

Please sign in to comment.