Skip to content

Commit

Permalink
Ignore warnings
Browse files Browse the repository at this point in the history
Added a filter to avoid warning print-outs.
  • Loading branch information
geo-masc authored Mar 1, 2023
1 parent 3a3f848 commit ead8368
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/ts/mowingDetection/mowingDetection_UDF.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from datetime import datetime, timedelta
import time
import numpy as np
import warnings

"""
>>> Mowing detection
Expand Down Expand Up @@ -89,6 +90,7 @@ def sinceEpoch(date): # returns seconds since epoch


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

Y = np.asarray(ys)/10000
Expand Down

0 comments on commit ead8368

Please sign in to comment.