Skip to content

Commit d089db4

Browse files
pre-commit-ci-lite[bot]jl-wynen
authored andcommitted
Apply automatic formatting
1 parent 05691f1 commit d089db4

File tree

6 files changed

+27
-26
lines changed

6 files changed

+27
-26
lines changed

docs/user-guide/estia/estia-mcstas-reduction.ipynb

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
{
8888
"cell_type": "code",
8989
"execution_count": null,
90-
"id": "4d632713-d017-496c-b596-6fa4176ec25b",
90+
"id": "5",
9191
"metadata": {},
9292
"outputs": [],
9393
"source": [
@@ -96,7 +96,7 @@
9696
},
9797
{
9898
"cell_type": "markdown",
99-
"id": "5",
99+
"id": "6",
100100
"metadata": {},
101101
"source": [
102102
"## Ni/Ti multilayer sample\n",
@@ -108,7 +108,7 @@
108108
{
109109
"cell_type": "code",
110110
"execution_count": null,
111-
"id": "6",
111+
"id": "7",
112112
"metadata": {},
113113
"outputs": [],
114114
"source": [
@@ -125,7 +125,7 @@
125125
},
126126
{
127127
"cell_type": "markdown",
128-
"id": "7",
128+
"id": "8",
129129
"metadata": {},
130130
"source": [
131131
"Below are a number of figures displaying different projections of the measured intensity distribution."
@@ -134,7 +134,7 @@
134134
{
135135
"cell_type": "code",
136136
"execution_count": null,
137-
"id": "8",
137+
"id": "9",
138138
"metadata": {},
139139
"outputs": [],
140140
"source": [
@@ -148,7 +148,7 @@
148148
{
149149
"cell_type": "code",
150150
"execution_count": null,
151-
"id": "9",
151+
"id": "10",
152152
"metadata": {},
153153
"outputs": [],
154154
"source": [
@@ -158,7 +158,7 @@
158158
{
159159
"cell_type": "code",
160160
"execution_count": null,
161-
"id": "10",
161+
"id": "11",
162162
"metadata": {},
163163
"outputs": [],
164164
"source": [
@@ -168,7 +168,7 @@
168168
{
169169
"cell_type": "code",
170170
"execution_count": null,
171-
"id": "11",
171+
"id": "12",
172172
"metadata": {},
173173
"outputs": [],
174174
"source": [
@@ -177,7 +177,7 @@
177177
},
178178
{
179179
"cell_type": "markdown",
180-
"id": "12",
180+
"id": "13",
181181
"metadata": {},
182182
"source": [
183183
"## Ni on Silicon"
@@ -186,7 +186,7 @@
186186
{
187187
"cell_type": "code",
188188
"execution_count": null,
189-
"id": "13",
189+
"id": "14",
190190
"metadata": {},
191191
"outputs": [],
192192
"source": [
@@ -203,7 +203,7 @@
203203
{
204204
"cell_type": "code",
205205
"execution_count": null,
206-
"id": "14",
206+
"id": "15",
207207
"metadata": {},
208208
"outputs": [],
209209
"source": [
@@ -217,7 +217,7 @@
217217
{
218218
"cell_type": "code",
219219
"execution_count": null,
220-
"id": "15",
220+
"id": "16",
221221
"metadata": {},
222222
"outputs": [],
223223
"source": [
@@ -227,7 +227,7 @@
227227
{
228228
"cell_type": "code",
229229
"execution_count": null,
230-
"id": "16",
230+
"id": "17",
231231
"metadata": {},
232232
"outputs": [],
233233
"source": [
@@ -237,7 +237,7 @@
237237
{
238238
"cell_type": "code",
239239
"execution_count": null,
240-
"id": "17",
240+
"id": "18",
241241
"metadata": {},
242242
"outputs": [],
243243
"source": [
@@ -246,7 +246,7 @@
246246
},
247247
{
248248
"cell_type": "markdown",
249-
"id": "18",
249+
"id": "19",
250250
"metadata": {},
251251
"source": [
252252
"## SiO2 on Silicon"
@@ -255,7 +255,7 @@
255255
{
256256
"cell_type": "code",
257257
"execution_count": null,
258-
"id": "19",
258+
"id": "20",
259259
"metadata": {},
260260
"outputs": [],
261261
"source": [
@@ -272,7 +272,7 @@
272272
{
273273
"cell_type": "code",
274274
"execution_count": null,
275-
"id": "20",
275+
"id": "21",
276276
"metadata": {},
277277
"outputs": [],
278278
"source": [
@@ -286,7 +286,7 @@
286286
{
287287
"cell_type": "code",
288288
"execution_count": null,
289-
"id": "21",
289+
"id": "22",
290290
"metadata": {},
291291
"outputs": [],
292292
"source": [
@@ -296,7 +296,7 @@
296296
{
297297
"cell_type": "code",
298298
"execution_count": null,
299-
"id": "22",
299+
"id": "23",
300300
"metadata": {},
301301
"outputs": [],
302302
"source": [
@@ -306,7 +306,7 @@
306306
{
307307
"cell_type": "code",
308308
"execution_count": null,
309-
"id": "23",
309+
"id": "24",
310310
"metadata": {},
311311
"outputs": [],
312312
"source": [

src/ess/amor/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
BeamSize,
1414
DetectorSpatialResolution,
1515
NeXusDetectorName,
16-
RunType,
1716
Position,
17+
RunType,
1818
SampleRotationOffset,
1919
)
2020
from . import (

src/ess/amor/workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from ..reflectometry.types import (
99
BeamDivergenceLimits,
1010
CoordTransformationGraph,
11-
ProtonCurrent,
1211
DetectorData,
12+
ProtonCurrent,
1313
ReducibleData,
1414
RunType,
1515
WavelengthBins,

src/ess/estia/corrections.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-License-Identifier: BSD-3-Clause
22
# Copyright (c) 2025 Scipp contributors (https://github.com/scipp)
33
import scipp as sc
4+
45
from ..reflectometry.conversions import (
56
add_coords,
67
add_proton_current_coord,
@@ -10,8 +11,8 @@
1011
from ..reflectometry.types import (
1112
BeamDivergenceLimits,
1213
CoordTransformationGraph,
13-
ProtonCurrent,
1414
DetectorData,
15+
ProtonCurrent,
1516
ReducibleData,
1617
RunType,
1718
WavelengthBins,
@@ -46,9 +47,9 @@ def add_coords_masks_and_apply_corrections(
4647
return ReducibleData[RunType](da)
4748

4849

49-
5050
def correct_by_footprint(da: sc.DataArray) -> sc.DataArray:
5151
"""Corrects the data by the size of the footprint on the sample."""
5252
return da / sc.sin(da.coords['theta'])
5353

54+
5455
providers = (add_coords_masks_and_apply_corrections,)

src/ess/estia/load.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import scipp as sc
55

66
from ..reflectometry.types import (
7-
Filename,
87
DetectorData,
8+
Filename,
99
RunType,
1010
SampleRotationOffset,
1111
)

src/ess/offspec/load.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (c) 2025 Scipp contributors (https://github.com/scipp)
33
import scipp as sc
44

5-
from ..reflectometry.types import Filename, DetectorData, ReferenceRun, RunType
5+
from ..reflectometry.types import DetectorData, Filename, ReferenceRun, RunType
66
from .types import CoordTransformationGraph, MonitorData, NeXusMonitorName
77

88

0 commit comments

Comments
 (0)