forked from lmfit/uncertainties
-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
49 lines (41 loc) · 1006 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import warnings
from uncertainties.new.covariance import (
correlation_matrix,
correlated_values,
correlated_values_norm,
covariance_matrix,
)
from uncertainties.new.ufloat import (
UFloat,
ufloat,
ufloat_fromstr,
nominal_value,
std_dev,
)
from uncertainties.new.umath import (
add_float_funcs_to_ufloat,
add_math_funcs_to_umath,
add_ufuncs_to_ufloat,
)
from uncertainties.new.func_conversion import to_ufloat_func, to_ufloat_pos_func
__all__ = [
"UFloat",
"ufloat",
"ufloat_fromstr",
"correlation_matrix",
"correlated_values",
"correlated_values_norm",
"covariance_matrix",
"nominal_value",
"std_dev",
"to_ufloat_func",
"to_ufloat_pos_func",
]
try:
from uncertainties.new.uarray import UArray
__all__.append("UArray")
except ImportError:
warnings.warn("Failed to import numpy. UArray functionality is unavailable.")
add_float_funcs_to_ufloat()
add_math_funcs_to_umath()
add_ufuncs_to_ufloat()