Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: do not pin mkdocs version #247

Merged
merged 4 commits into from
Apr 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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