File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed 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