Skip to content

Commit

Permalink
numpy functions always appear in __all__
Browse files Browse the repository at this point in the history
  • Loading branch information
jagerber48 committed Nov 4, 2024
1 parent e0b1b7d commit 6fba94b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions uncertainties/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
"nan_if_exception",
"modified_operators",
"modified_ops_with_reflection",
"correlated_values",
"correlated_values_norm",
"correlation_matrix",
]

###############################################################################
Expand All @@ -65,14 +68,7 @@

try:
import numpy

__all__ += [
"correlated_values",
"correlated_values_norm",
"correlation_matrix",
]
except ImportError:
msg = "Unable to import numpy. Some functionality will be unavailable"
numpy = None


Expand Down

0 comments on commit 6fba94b

Please sign in to comment.