Skip to content

Commit

Permalink
rename: QStd to QResolution
Browse files Browse the repository at this point in the history
  • Loading branch information
jokasimr committed Oct 25, 2023
1 parent 81536bd commit 51bb355
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/examples/amor.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"metadata": {},
"outputs": [],
"source": [
"pipeline.visualize((NormalizedIOfQ, QStd), graph_attr={'rankdir': 'LR'})"
"pipeline.visualize((NormalizedIOfQ, QResolution), graph_attr={'rankdir': 'LR'})"
]
},
{
Expand All @@ -68,7 +68,7 @@
"outputs": [],
"source": [
"# Compute I over Q and the standard deviation of Q\n",
"ioq, qstd = pipeline.compute((NormalizedIOfQ, QStd)).values()"
"ioq, qstd = pipeline.compute((NormalizedIOfQ, QResolution)).values()"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/essreflectometry/amor/resolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
AngularResolution,
QBins,
QData,
QStd,
QResolution,
Sample,
SampleSizeResolution,
WavelengthResolution,
Expand Down Expand Up @@ -146,7 +146,7 @@ def sigma_Q(
wavelength_resolution: WavelengthResolution,
sample_size_resolution: SampleSizeResolution,
q_bins: QBins,
) -> QStd:
) -> QResolution:
"""
Combine all of the components of the resolution and add Q contribution.
Expand Down
2 changes: 1 addition & 1 deletion src/essreflectometry/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class QData(sciline.Scope[Run, sc.DataArray], sc.DataArray):
"""Theta data transformed to momentum transfer"""


QStd = NewType('QStd', sc.Variable)
QResolution = NewType('QResolution', sc.Variable)


class FootprintCorrected(sciline.Scope[Run, sc.DataArray], sc.DataArray):
Expand Down

0 comments on commit 51bb355

Please sign in to comment.