Skip to content

Commit 37f8aa6

Browse files
authored
Merge branch 'main' into orso-corrections
2 parents bc82aa9 + b99fbd6 commit 37f8aa6

File tree

9 files changed

+25
-28
lines changed

9 files changed

+25
-28
lines changed

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2-
_commit: ee9a09a
2+
_commit: 713c40f
33
_src_path: gh:scipp/copier_template
44
description: Reflectometry data reduction for the European Spallation Source
55
max_python: '3.12'

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ jobs:
2727
- uses: actions/setup-python@v4
2828
with:
2929
python-version-file: '.github/workflows/python-version-ci'
30-
- run: python -m pip install --upgrade pip
31-
- run: python -m pip install -r requirements/ci.txt
32-
- run: tox -e static
33-
- uses: stefanzweifel/git-auto-commit-action@v5
30+
- uses: pre-commit/[email protected]
3431
with:
35-
commit_message: Apply automatic formatting
32+
extra_args: --all-files
33+
- uses: pre-commit-ci/[email protected]
34+
if: always()
35+
with:
36+
msg: Apply automatic formatting
3637

3738
tests:
3839
name: Tests

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ docs/generated/
3737
*.raw
3838
*.cif
3939
*.rcif
40+
*.ort

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
'sphinx.ext.intersphinx',
2424
'sphinx.ext.mathjax',
2525
'sphinx.ext.napoleon',
26+
'sphinx.ext.viewcode',
2627
'sphinx_autodoc_typehints',
2728
'sphinx_copybutton',
2829
'sphinx_design',

requirements/base.in

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
# Temporary until questionary (dep of copier) updates
2-
# See https://github.com/tmbo/questionary/blob/2df265534f3eb77aafcf70902e53e80beb1793e0/pyproject.toml#L36C43-L36C110
3-
prompt-toolkit==3.0.36
4-
# Temporary pinned until prompt-tookit conflict is resolved.
5-
ipython==8.9.0
1+
# Anything above "--- END OF CUSTOM SECTION ---"
2+
# will not be touched by ``make_base.py``
63
# --- END OF CUSTOM SECTION ---
74
# The following was generated by 'tox -e deps', DO NOT EDIT MANUALLY!
85
dask

requirements/base.txt

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SHA1:df5a1bd38eaeab3b3099d7d737171e2192615a39
1+
# SHA1:697621007a6df52e05884bd9bf630052e4aa6fbe
22
#
33
# This file is autogenerated by pip-compile-multi
44
# To update, run:
@@ -7,8 +7,6 @@
77
#
88
asttokens==2.4.1
99
# via stack-data
10-
backcall==0.2.0
11-
# via ipython
1210
certifi==2024.2.2
1311
# via requests
1412
charset-normalizer==3.3.2
@@ -27,6 +25,8 @@ dask==2024.2.0
2725
# via -r base.in
2826
decorator==5.1.1
2927
# via ipython
28+
exceptiongroup==1.2.0
29+
# via ipython
3030
executing==2.0.1
3131
# via stack-data
3232
fonttools==4.49.0
@@ -45,10 +45,8 @@ importlib-metadata==7.0.1
4545
# via dask
4646
ipydatawidgets==4.3.5
4747
# via pythreejs
48-
ipython==8.9.0
49-
# via
50-
# -r base.in
51-
# ipywidgets
48+
ipython==8.22.1
49+
# via ipywidgets
5250
ipywidgets==8.1.2
5351
# via
5452
# ipydatawidgets
@@ -88,8 +86,6 @@ partd==1.4.1
8886
# via dask
8987
pexpect==4.9.0
9088
# via ipython
91-
pickleshare==0.7.5
92-
# via ipython
9389
pillow==10.2.0
9490
# via matplotlib
9591
platformdirs==4.2.0
@@ -98,10 +94,8 @@ plopp==24.2.0
9894
# via -r base.in
9995
pooch==1.8.1
10096
# via scippneutron
101-
prompt-toolkit==3.0.36
102-
# via
103-
# -r base.in
104-
# ipython
97+
prompt-toolkit==3.0.43
98+
# via ipython
10599
ptyprocess==0.7.0
106100
# via pexpect
107101
pure-eval==0.2.2

requirements/dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ python-json-logger==2.0.7
9595
# via jupyter-events
9696
pyyaml-include==1.3.2
9797
# via copier
98-
questionary==2.0.1
98+
questionary==1.10.0
9999
# via copier
100100
rfc3339-validator==0.1.4
101101
# via

requirements/make_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def write_dependencies(dependency_name: str, dependencies: List[str]) -> None:
4343
with open("../pyproject.toml", "rb") as toml_file:
4444
pyproject = tomli.load(toml_file)
4545
dependencies = pyproject["project"].get("dependencies")
46-
if not dependencies:
46+
if dependencies is None:
4747
raise RuntimeError("No dependencies found in pyproject.toml")
4848
dependencies = [dep.strip().strip('"') for dep in dependencies]
4949

src/essreflectometry/supermirror/types.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
import scipp as sc
44

5-
# TODO What do they mean?
6-
# Supermirror parameters
5+
# TODO Better specification of what the supermirror parameters mean
76
MValue = NewType('MValue', sc.Variable)
7+
''':math:`M` value of the supermirror'''
88
CriticalEdge = NewType('CriticalEdge', sc.Variable)
9+
'''Critical edge value of the supermirror'''
910
Alpha = NewType('Alpha', sc.Variable)
11+
''':math:`\\alpha` value of the supermirror'''
1012
SupermirrorCalibrationFactor = NewType('SupermirrorCalibrationFactor', sc.Variable)
13+
'''Calibration factor from the supermirror calibration'''

0 commit comments

Comments
 (0)