Skip to content

Commit 53be611

Browse files
committed
fix
1 parent cf0ae6d commit 53be611

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

docs/user-guide/amor/amor-reduction.ipynb

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -180,28 +180,10 @@
180180
"source": [
181181
"from ess.reflectometry.tools import scale_reflectivity_curves_to_overlap\n",
182182
"\n",
183-
"scaled_reflectivity_curves = scale_reflectivity_curves_to_overlap(reflectivity.values())\n",
184-
"\n",
183+
"scaled_reflectivity_curves, scale_factors = scale_reflectivity_curves_to_overlap(reflectivity.values())\n",
185184
"sc.plot(dict(zip(reflectivity.keys(), scaled_reflectivity_curves, strict=True)), norm='log', vmin=1e-5)"
186185
]
187186
},
188-
{
189-
"cell_type": "markdown",
190-
"metadata": {},
191-
"source": [
192-
"If you don't want to apply the scaling the curves but only compute the scale factors that is done by passing the `return_scaling_factors` flag to the routine:"
193-
]
194-
},
195-
{
196-
"cell_type": "code",
197-
"execution_count": null,
198-
"metadata": {},
199-
"outputs": [],
200-
"source": [
201-
"scale_factors = scale_reflectivity_curves_to_overlap(reflectivity.values(), return_scaling_factors=True)\n",
202-
"scale_factors"
203-
]
204-
},
205187
{
206188
"cell_type": "markdown",
207189
"metadata": {},

0 commit comments

Comments
 (0)