File tree Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -257,9 +257,11 @@ def set_parameter_widget_values(
257
257
258
258
Example
259
259
-------
260
- {
261
- 'WavelengthBins': {'start': 1.0, 'stop': 14.0, 'nbins': 500}
262
- }
260
+ .. code-block::
261
+
262
+ set_parameter_widget_values(widget, {
263
+ 'WavelengthBins': {'start': 1.0, 'stop': 14.0, 'nbins': 500}
264
+ })
263
265
264
266
Parameters
265
267
----------
Original file line number Diff line number Diff line change 13
13
helper function.
14
14
"""
15
15
16
- from enum import Enum
16
+ from enum import Enum , auto
17
17
from typing import TypeVar , overload
18
18
19
19
import numpy as np
23
23
T = TypeVar ("T" , bound = sc .Variable | sc .DataArray )
24
24
25
25
26
- UncertaintyBroadcastMode = Enum (
27
- 'UncertaintyBroadcastMode' , ['drop' , 'upper_bound' , 'fail' ]
28
- )
29
- """
30
- Mode for broadcasting uncertainties.
26
+ class UncertaintyBroadcastMode (Enum ):
27
+ """Mode for broadcasting uncertainties.
31
28
32
- - `drop`: Drop variances if the data is broadcasted.
33
- - `upper_bound`: Compute an upper bound for the variances.
34
- - `fail`: Do not broadcast, simply return the input data.
29
+ See https://doi.org/10.3233/JNR-220049 for context.
30
+ """
35
31
36
- See https://doi.org/10.3233/JNR-220049 for context.
37
- """
32
+ drop = auto ()
33
+ """Drop variances if the data is broadcast."""
34
+ upper_bound = auto ()
35
+ """Compute an upper bound for the variances."""
36
+ fail = auto ()
37
+ """Do not broadcast, simply return the input data."""
38
38
39
39
40
40
@overload
You can’t perform that action at this time.
0 commit comments