Skip to content

Commit

Permalink
chore: do not pin mkdocs version (#247)
Browse files Browse the repository at this point in the history
* chore: pre-commit autoupdate

updates:
- [github.com/psf/black: 21.12b0 → 22.3.0](psf/black@21.12b0...22.3.0)
- [github.com/asottile/blacken-docs: v1.12.0 → v1.12.1](adamchainz/blacken-docs@v1.12.0...v1.12.1)
- [github.com/nbQA-dev/nbQA: 1.2.2 → 1.3.1](nbQA-dev/nbQA@1.2.2...1.3.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* build: do not pin mkdocs version

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
oboulant and pre-commit-ci[bot] authored Apr 6, 2022
1 parent 1cabe92 commit 866991e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 21.12b0
rev: 22.3.0
hooks:
- id: black
language_version: python3
Expand Down Expand Up @@ -33,11 +33,11 @@ repos:
hooks:
- id: nbstripout
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.0
rev: v1.12.1
hooks:
- id: blacken-docs
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.2.2
rev: 1.3.1
hooks:
- id: nbqa-black
args: [--nbqa-mutate]
Expand Down
4 changes: 2 additions & 2 deletions docs/user-guide/detection/binseg.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ In the situation in which the number of change points is unknown, one can specif
the `pen` parameter or a threshold on the residual norm using `epsilon`.

```python
my_bkps = algo.predict(pen=np.log(n) * dim * sigma ** 2)
my_bkps = algo.predict(pen=np.log(n) * dim * sigma**2)
# or
my_bkps = algo.predict(epsilon=3 * n * sigma ** 2)
my_bkps = algo.predict(epsilon=3 * n * sigma**2)
```

For faster predictions, one can modify the `jump` parameter during initialization.
Expand Down
4 changes: 2 additions & 2 deletions docs/user-guide/detection/bottomup.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ In the situation in which the number of change points is unknown, one can specif
the `pen` parameter or a threshold on the residual norm using `epsilon`.

```python
my_bkps = algo.predict(pen=np.log(n) * dim * sigma ** 2)
my_bkps = algo.predict(pen=np.log(n) * dim * sigma**2)
# or
my_bkps = algo.predict(epsilon=3 * n * sigma ** 2)
my_bkps = algo.predict(epsilon=3 * n * sigma**2)
```

For faster predictions, one can modify the `jump` parameter during initialization.
Expand Down
4 changes: 2 additions & 2 deletions docs/user-guide/detection/window.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ In the situation in which the number of change points is unknown, one can specif
the `pen` parameter or a threshold on the residual norm using `epsilon`.

```python
my_bkps = algo.predict(pen=np.log(n) * dim * sigma ** 2)
my_bkps = algo.predict(pen=np.log(n) * dim * sigma**2)
# or
my_bkps = algo.predict(epsilon=3 * n * sigma ** 2)
my_bkps = algo.predict(epsilon=3 * n * sigma**2)
```

For faster predictions, one can modify the `jump` parameter during initialization.
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ docs =
jupyter
librosa
matplotlib
mkdocs==1.1.2
mkdocs
mkdocs-macros-plugin
mkdocs-material
mkdocs-section-index
Expand Down
4 changes: 2 additions & 2 deletions tests/test_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,13 +347,13 @@ def test_model_small_signal(signal_bkps_5D_n10, algo, model):
with pytest.raises(BadSegmentationParameters):
algo(model=model, min_size=5, jump=2).fit_predict(signal, n_bkps=2)
assert (
len(algo(model=model, min_size=5, jump=2).fit_predict(signal, pen=10 ** 6)) > 0
len(algo(model=model, min_size=5, jump=2).fit_predict(signal, pen=10**6)) > 0
)
assert (
len(algo(model=model, min_size=5, jump=2).fit_predict(signal, epsilon=10)) > 0
)
assert (
len(algo(model=model, min_size=9, jump=2).fit_predict(signal, pen=10 ** 6)) > 0
len(algo(model=model, min_size=9, jump=2).fit_predict(signal, pen=10**6)) > 0
)


Expand Down

0 comments on commit 866991e

Please sign in to comment.