Skip to content

Commit 32ac4cb

Browse files
authored
Merge pull request #94 from MaelleTtrt/improve_agreement
correction and split agreement into 2 functions
2 parents 3462763 + 775bf0b commit 32ac4cb

16 files changed

Lines changed: 1085 additions & 584 deletions

.pre-commit-config.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.3.0
4+
hooks:
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
- repo: https://github.com/astral-sh/ruff-pre-commit
9+
# Ruff version.
10+
rev: v0.12.7
11+
hooks:
12+
# Run the linter.
13+
- id: ruff-check
14+
args:
15+
- --fix
16+
- --select=E4,E7,E9,F
17+
# Run the formatter.
18+
- id: ruff-format

docs/source/_static/APOCADO_yaml.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
'f_min': null
1111
'f_max': null
1212
'score': null
13+
'filename_format': "%Y-%m-%dT%H-%M-%S_000.wav"

docs/source/example_overview.ipynb

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,28 @@
1010
"[^download]: This notebook can be downloaded as **{nb-download}\n",
1111
"repr(example_overview.ipynb) **.\n",
1212
"\n",
13-
"This very simple example shows you how to make an overview plot provided a yaml configuration file and a result csv."
13+
"This basic example shows you how to make an overview plot provided a YAML configuration file and a result CSV file."
1414
]
1515
},
16+
{
17+
"metadata": {},
18+
"cell_type": "markdown",
19+
"source": "",
20+
"id": "feb4595b96c1bbff"
21+
},
1622
{
1723
"cell_type": "code",
18-
"execution_count": null,
1924
"id": "6a230b00c14cc64e",
2025
"metadata": {},
21-
"outputs": [],
2226
"source": [
2327
"from pathlib import Path\n",
2428
"\n",
2529
"import matplotlib.pyplot as plt\n",
2630
"\n",
2731
"from post_processing.dataclass.data_aplose import DataAplose"
28-
]
32+
],
33+
"outputs": [],
34+
"execution_count": null
2935
},
3036
{
3137
"cell_type": "markdown",
@@ -35,14 +41,14 @@
3541
},
3642
{
3743
"cell_type": "code",
38-
"execution_count": null,
3944
"id": "c19ddde8bf965ee8",
4045
"metadata": {},
41-
"outputs": [],
4246
"source": [
43-
"yaml_file = Path(r\"resource/APOCADO_yaml.yml\")\n",
47+
"yaml_file = Path(r\"_static/APOCADO_yaml.yml\")\n",
4448
"data = DataAplose.from_yaml(file=yaml_file)"
45-
]
49+
],
50+
"outputs": [],
51+
"execution_count": null
4652
},
4753
{
4854
"cell_type": "markdown",
@@ -52,15 +58,15 @@
5258
},
5359
{
5460
"cell_type": "code",
55-
"execution_count": null,
5661
"id": "cf59962e0e23eb96",
5762
"metadata": {},
58-
"outputs": [],
5963
"source": [
6064
"data.overview()\n",
6165
"plt.tight_layout()\n",
6266
"plt.show()"
63-
]
67+
],
68+
"outputs": [],
69+
"execution_count": null
6470
}
6571
],
6672
"metadata": {

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ dev = [
3737
"sphinx-book-theme>=1.1.4",
3838
"sphinx-copybutton>=0.5.2",
3939
"coverage>=7.11.0",
40+
"pre-commit>=4.5.1",
4041
]
4142

4243
[tool.ruff.lint.flake8-copyright]

0 commit comments

Comments
 (0)