Пример #1
0
 def no_trend(self):
     try:
         return [calculator.step(
             data=self.pandas_timeseries,
             bp=0,
             alpha=float(self.request.session[
                             'trend_detection']['spinner_0']['value']),
             detrend_anyway=True
         )]
     except KeyError:
         return
Пример #2
0
 def no_trend(self):
     try:
         return [
             calculator.step(
                 data=self.pandas_timeseries,
                 bp=0,
                 alpha=float(self.request.session['trend_detection']
                             ['spinner_0']['value']),
                 detrend_anyway=True)
         ]
     except KeyError:
         return
Пример #3
0
 def step_trend(self):
     try:
         split = int(self.request.session['trend_detection']['graph']['x'])
         if split == 0:
             return
         breakpoint = jsdt.js_to_datetime(split)
         return [calculator.step(
             data=self.pandas_timeseries,
             bp=int(self.pandas_timeseries.index.searchsorted(breakpoint)),
             alpha=float(self.request.session[
                             'trend_detection']['spinner_0']['value']),
             detrend_anyway=True
         )]
     except KeyError:
         return
Пример #4
0
 def step_trend(self):
     try:
         split = int(self.request.session['trend_detection']['graph']['x'])
         if split == 0:
             return
         breakpoint = jsdt.js_to_datetime(split)
         return [
             calculator.step(
                 data=self.pandas_timeseries,
                 bp=int(
                     self.pandas_timeseries.index.searchsorted(breakpoint)),
                 alpha=float(self.request.session['trend_detection']
                             ['spinner_0']['value']),
                 detrend_anyway=True)
         ]
     except KeyError:
         return