Skip to content

Commit ead8368

Browse files
authored
Ignore warnings
Added a filter to avoid warning print-outs.
1 parent 3a3f848 commit ead8368

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/ts/mowingDetection/mowingDetection_UDF.py

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from datetime import datetime, timedelta
33
import time
44
import numpy as np
5+
import warnings
56

67
"""
78
>>> Mowing detection
@@ -89,6 +90,7 @@ def sinceEpoch(date): # returns seconds since epoch
8990

9091

9192
def detectMow_S2_new(xs, ys, clearWd, yr, type='ConHull', nOrder=3, model='linear'):
93+
warnings.simplefilter('ignore')
9294
another_thrs = 0.15
9395

9496
Y = np.asarray(ys)/10000

0 commit comments

Comments
 (0)