Skip to content

Commit daab3cd

Browse files
committed
spellcheck
1 parent 3e475d2 commit daab3cd

36 files changed

+192
-88
lines changed

.github/workflows/documentation.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@ name: sphinx
33
on: [push, pull_request, workflow_call]
44

55
jobs:
6+
spellcheck:
7+
runs-on: "windows-latest"
8+
steps:
9+
- uses: actions/checkout@v4
10+
with:
11+
fetch-depth: 0
12+
- uses: actions/setup-python@v5
13+
with:
14+
python-version: "3.13"
15+
- name: install requirements
16+
run: pip install -e .[dev]
17+
- name: run spellcheck
18+
run: sphinx-build -E -a -W --keep-going -b spelling doc _build
619
call_sphinx_builder:
720
uses: ISISComputingGroup/reusable-workflows/.github/workflows/sphinx.yml@main
821
secrets: inherit

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ Core bluesky plan stubs & devices for use at ISIS.
88
| [CI (nightly)](https://github.com/ISISComputingGroup/ibex_bluesky_core/actions/workflows/lint-and-test-nightly.yml) | [<img src="https://github.com/ISISComputingGroup/ibex_bluesky_core/actions/workflows/lint-and-test-nightly.yml/badge.svg">](https://github.com/ISISComputingGroup/ibex_bluesky_core/actions/workflows/lint-and-test-nightly.yml) |
99
| [CI (`bluesky` & `ophyd-async` main)](https://github.com/ISISComputingGroup/ibex_bluesky_core/actions/workflows/test-against-main.yml) | [<img src="https://github.com/ISISComputingGroup/ibex_bluesky_core/actions/workflows/test-against-main.yml/badge.svg">](https://github.com/ISISComputingGroup/ibex_bluesky_core/actions/workflows/test-against-main.yml) |
1010
| [PyPI](https://pypi.org/project/ibex-bluesky-core/) | ![PyPI - Version](https://img.shields.io/pypi/v/ibex_bluesky_core) |
11-
| [Github](https://github.com/ISISComputingGroup/ibex_bluesky_core) | ![GitHub Release](https://img.shields.io/github/v/release/IsisComputingGroup/ibex_bluesky_core) |
11+
| [GitHub](https://github.com/ISISComputingGroup/ibex_bluesky_core) | ![GitHub Release](https://img.shields.io/github/v/release/IsisComputingGroup/ibex_bluesky_core) |
1212
| [License](https://github.com/ISISComputingGroup/ibex_bluesky_core/blob/main/LICENSE) | ![GitHub License](https://img.shields.io/github/license/ISISComputingGroup/ibex_bluesky_core) |

doc/architectural_decisions/005-variance-addition.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Current
66

77
## Context
88

9-
For counts data, the uncertainty on counts is typically defined by poisson counting statistics, i.e. the standard
10-
deviation on `N` counts is `sqrt(N)`.
9+
For counts data, the uncertainty on counts is typically defined by Poisson counting statistics, i.e. the standard
10+
deviation on {math}`N` counts is {math}`\sqrt{N}`.
1111

1212
This can be problematic in cases where zero counts have been collected, as the standard deviation will then be zero,
1313
which will subsequently lead to "infinite" point weightings in downstream fitting routines for example.
@@ -24,17 +24,17 @@ Use a standard deviation of `NaN` for points with zero counts.
2424

2525
### Option C
2626

27-
Define the standard deviation of `N` counts as `1` if counts are zero, otherwise `sqrt(N)`. This is one of the
27+
Define the standard deviation of {math}`N` counts as {math}`1` if counts are zero, otherwise {math}`\sqrt{N}`. This is one of the
2828
approaches [available in mantid](https://github.com/mantidproject/mantid/blob/bbbb86edc2c3fa554499770463aa25c2b46984e5/docs/source/algorithms/SetUncertainties-v1.rst#L16) for example.
2929

3030
### Option D
3131

32-
Define the standard deviation of `N` counts as `sqrt(N+0.5)` unconditionally - on the basis that "half a count" is
32+
Define the standard deviation of {math}`N` counts as {math}`\sqrt{N+0.5}` unconditionally - on the basis that "half a count" is
3333
smaller than the smallest possible actual measurement which can be taken.
3434

3535
### Option E
3636

37-
No special handling, calculate std. dev. as `sqrt(N)`.
37+
No special handling, calculate std. dev. as {math}`\sqrt{N}`.
3838

3939
---
4040

doc/architectural_decisions/006-where-to-put-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Examples of devices and where we would put them under this model:
3434
Examples of plans and where we would put them under this model:
3535
### `ibex_bluesky_core` plans
3636
- Scanning one block against DAE with a common set of callbacks
37-
- Optimizing an axis against a readback (e.g. consituent parts of reflectometry auto-align)
37+
- Optimizing an axis against a readback (e.g. constituent parts of reflectometry auto-align)
3838
- Very common plans
3939
- `scan_motor_against_dae`:
4040
* Always assumes a "motor" - i.e. sets up a block with `use_completion_callback=True` and `use_global_moving_flag=True`

doc/architectural_decisions/008-centre-of-mass.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ We currently only need to support positive peaks, but in future a toggle could b
2020

2121
This will mean that...
2222
- Our version of the callback will not be supported by Bluesky and may need changes as Bluesky updates.
23-
- We can have a version of the callback that is made bespokely for our use cases.
23+
- We can have a version of the callback that is made specifically for our use cases.

doc/callbacks/file_writing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Optional parameters, not shown above, include:
5656
The data is prepended on the first event with the names and units of each logged field, and then subsequently the data
5757
for each scan separated by a newline. The data is separated by commas, though the metadata is not.
5858

59-
The file also contains metadata such as the bluesky version, plan type, and rb number.
59+
The file also contains metadata such as the bluesky version, plan type, and RB number.
6060

6161
## Fit outputs
6262

doc/callbacks/fitting/fitting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ lf = LiveFit(fit_method, y="y_signal", x="x_signal", update_every=0.5)
161161
```
162162

163163
:::{note}
164-
The parameters returned from the guess function must allocate to the arguments to the model function, ignoring the independant variable e.g `x` in this case. Array-like structures are not allowed. See the {external+lmfit:doc}`parameters` for more information.
164+
The parameters returned from the guess function must allocate to the arguments to the model function, ignoring the independent variable e.g `x` in this case. Array-like structures are not allowed. See the {external+lmfit:doc}`parameters` for more information.
165165
:::
166166

167167
Each {py:obj}`~ibex_bluesky_core.fitting.FitMethod` in {py:obj}`ibex_bluesky_core.fitting` has a `.model()` and `.guess()`, which make up their fitting method. These are publicly accessible class methods.
@@ -215,7 +215,7 @@ lf = LiveFit(fit_method, y="y_signal", x="x_signal", update_every=0.5)
215215
Or you can create a completely user-defined fitting method.
216216

217217
:::{note}
218-
For fits that require arguments, you will need to pass values to their respecitive `.model` and `.guess` functions. E.g for {py:obj}`~ibex_bluesky_core.fitting.Polynomial` fitting:
218+
For fits that require arguments, you will need to pass values to their respective `.model` and `.guess` functions. E.g for {py:obj}`~ibex_bluesky_core.fitting.Polynomial` fitting:
219219
:::
220220

221221
```python

doc/callbacks/plotting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ See [docs for `call_qt_aware`](../plan_stubs/matplotlib_helpers.md) for a descri
5050
`yield from call_qt_aware` rather than calling `matplotlib` functions directly.
5151
```
5252

53-
By providing a signal name to the `yerr` argument you can pass uncertainties to {py:obj}`~ibex_bluesky_core.callbacks.LivePlot`, by not providing anything for this argument means that no errorbars will be drawn. Errorbars are drawn after each point collected, displaying their standard deviation- uncertainty data is collected from Bluesky event documents and errorbars are updated after every new point added.
53+
By providing a signal name to the `yerr` argument you can pass uncertainties to {py:obj}`~ibex_bluesky_core.callbacks.LivePlot`, by not providing anything for this argument means that no error bars will be drawn. Error bars are drawn after each point collected, displaying their standard deviation - uncertainty data is collected from Bluesky event documents and error bars are updated after every new point added.
5454

5555
The `plot_callback` object can then be subscribed to the run engine, using either:
5656
- An explicit callback when calling the run engine: `RE(some_plan(), plot_callback)`

doc/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@
8080
myst_heading_anchors = 7
8181
autodoc_preserve_defaults = True
8282

83+
spelling_lang = "en_GB"
84+
spelling_filters = ["enchant.tokenize.MentionFilter"]
85+
spelling_warning = True
86+
spelling_show_suggestions = True
87+
spelling_suggestion_limit = 3
88+
8389
intersphinx_mapping = {
8490
"python": ("https://docs.python.org/3", None),
8591
"bluesky": ("https://blueskyproject.io/bluesky/main/", None),

doc/dev/create_a_release.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ git push origin tag <release.version.number>
1212

1313
This will start a workflow that will check that all linters and tests pass,
1414
and then publish a new release with the version number specified in the tag to
15-
[Pypi](https://pypi.org/project/ibex-bluesky-core/0.0.1/) and github. The new
15+
[PyPI](https://pypi.org/project/ibex-bluesky-core/0.0.1/) and github. The new
1616
release can then be installed via `pip install ibex_bluesky_core`.
1717

1818
The workflow must be approved by someone in the ICP-Write group. To do this go
1919
to the action (Actions -> the action on the tag) and approve it.
2020

21-
Credentials for Pypi can be found in keeper.
21+
Credentials for PyPI can be found in keeper.

0 commit comments

Comments
 (0)