We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b06924 commit 2297c2fCopy full SHA for 2297c2f
windpowerlib/tools.py
@@ -9,6 +9,22 @@
9
__license__ = "GPLv3"
10
11
import numpy as np
12
+import warnings
13
+
14
15
+class WindpowerlibUserWarning(UserWarning):
16
+ """
17
+ The WindpowerlibUserWarning is used to warn users if they use the
18
+ windpowerlib in an untypical way. It is not necessarily wrong but could
19
+ lead to an unwanted behaviour if you do not know what you are doing.
20
+ If you know what you are doing you can easily switch the warnings off:
21
22
+ Examples
23
+ --------
24
+ >>> import warnings
25
+ >>> warnings.filterwarnings("ignore", category=WindpowerlibUserWarning)
26
27
+ pass
28
29
30
def linear_interpolation_extrapolation(df, target_height):
0 commit comments