Skip to content

Commit a5bde49

Browse files
committed
formatting
1 parent 09adff6 commit a5bde49

File tree

8 files changed

+11
-9
lines changed

8 files changed

+11
-9
lines changed

src/ess/amor/load.py

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

66
from ..reflectometry.load import load_nx
77
from ..reflectometry.types import (
8-
ReducibleDetectorData,
98
DetectorRotation,
109
Filename,
11-
NeXusDetectorName,
1210
LoadedNeXusDetector,
11+
NeXusDetectorName,
1312
RawDetectorData,
13+
ReducibleDetectorData,
1414
RunType,
1515
SampleRotation,
1616
)

src/ess/amor/resolution.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ def sigma_Q(
145145
Combined resolution function.
146146
"""
147147
return sc.sqrt(
148-
angular_resolution**2 + wavelength_resolution**2 + sample_size_resolution**2
148+
angular_resolution**2
149+
+ wavelength_resolution**2
150+
+ sample_size_resolution**2
149151
).flatten(to="detector_number").max("detector_number") * sc.midpoints(q_bins)
150152

151153

src/ess/amor/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
QBins,
77
ReflectivityData,
88
RunType,
9-
SampleRun,
109
SampleRotation,
10+
SampleRun,
1111
)
1212

1313
from .geometry import Detector

src/ess/reflectometry/conversions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
from scippneutron.conversion.graph import beamline, tof
77

88
from .types import (
9-
ReducibleDetectorData,
109
DataWithScatteringCoordinates,
1110
Gravity,
1211
IncidentBeam,
1312
MaskedData,
13+
ReducibleDetectorData,
1414
RunType,
1515
SamplePosition,
1616
SampleRotation,

src/ess/reflectometry/corrections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
FootprintCorrectedData,
1111
IdealReferenceIntensity,
1212
MaskedData,
13-
ReferenceRun,
1413
ReferenceIntensity,
14+
ReferenceRun,
1515
RunType,
1616
SampleSize,
1717
WavelengthBins,

src/ess/reflectometry/orso.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
from .load import load_nx
2020
from .supermirror import SupermirrorReflectivityCorrection
2121
from .types import (
22-
ReducibleDetectorData,
2322
Filename,
2423
FootprintCorrectedData,
24+
ReducibleDetectorData,
2525
ReferenceRun,
2626
SampleRun,
2727
)

tests/amor/pipeline_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
NormalizedIofQ,
1616
QBins,
1717
ReferenceRun,
18+
SampleRotation,
1819
SampleRun,
1920
SampleSize,
20-
SampleRotation,
2121
WavelengthBins,
2222
YIndexLimits,
2323
ZIndexLimits,

tests/orso_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from ess import amor, reflectometry
99
from ess.reflectometry import orso
10-
from ess.reflectometry.types import SampleRun, Filename
10+
from ess.reflectometry.types import Filename, SampleRun
1111

1212

1313
def test_build_orso_data_source():

0 commit comments

Comments
 (0)