Skip to content

Commit 41a4968

Browse files
committed
Use type vars in typical_outputs
1 parent e038551 commit 41a4968

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

docs/user-guide/dream/workflow-widget-dream.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"wfw = widget.children[1].children[0]\n",
6060
"outputs = wfw.output_selection_box.typical_outputs_widget\n",
6161
"keys, values = zip(*outputs.options, strict=True)\n",
62-
"ind = keys.index(\"IofTof\")\n",
62+
"ind = keys.index(\"IofDspacing[SampleRun]\")\n",
6363
"outputs.value = (values[ind],)\n",
6464
"# Refresh parameters\n",
6565
"pbox = wfw.parameter_box\n",
@@ -116,7 +116,7 @@
116116
"outputs": [],
117117
"source": [
118118
"(da,) = results.values()\n",
119-
"da.hist(tof=200).plot()"
119+
"da.hist(dspacing=200).plot()"
120120
]
121121
}
122122
],

src/ess/dream/parameters.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
CalibrationFilename,
1010
DspacingBins,
1111
Filename,
12+
IofDspacing,
1213
IofDspacingTwoTheta,
13-
IofTof,
1414
MonitorFilename,
1515
NeXusDetectorName,
1616
PixelMaskFilename,
@@ -67,5 +67,9 @@
6767
# TODO: the mask parameters (TofMask, TwoThetaMask, WavelengthMask) need a new widget
6868
# that allows to define a python function in the notebook and pass it to the workflow.
6969
# We defer this to later; the masks are set to None by default in the workflow for now.
70-
# TODO
71-
typical_outputs = (IofTof, IofDspacingTwoTheta, ReducedTofCIF)
70+
71+
typical_outputs = (
72+
IofDspacing[SampleRun],
73+
IofDspacingTwoTheta[SampleRun],
74+
ReducedTofCIF,
75+
)

0 commit comments

Comments
 (0)