diff --git a/docs/examples/amor.ipynb b/docs/examples/amor.ipynb index e1933ac..bb44a7e 100644 --- a/docs/examples/amor.ipynb +++ b/docs/examples/amor.ipynb @@ -58,7 +58,7 @@ "metadata": {}, "outputs": [], "source": [ - "pipeline.visualize((NormalizedIOfQ, QStd), graph_attr={'rankdir': 'LR'})" + "pipeline.visualize((NormalizedIOfQ, QResolution), graph_attr={'rankdir': 'LR'})" ] }, { @@ -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()" ] }, { diff --git a/src/essreflectometry/amor/resolution.py b/src/essreflectometry/amor/resolution.py index e591dd1..8208438 100644 --- a/src/essreflectometry/amor/resolution.py +++ b/src/essreflectometry/amor/resolution.py @@ -7,7 +7,7 @@ AngularResolution, QBins, QData, - QStd, + QResolution, Sample, SampleSizeResolution, WavelengthResolution, @@ -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. diff --git a/src/essreflectometry/types.py b/src/essreflectometry/types.py index 6cd24e4..833bb6a 100644 --- a/src/essreflectometry/types.py +++ b/src/essreflectometry/types.py @@ -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):