Skip to content
Permalink
Browse files

Update habitica test to use predicted modes instead of sensed modes

Since we are inserted test sections that are inferred sections, make their
modes be predicted, not sensed modes
  • Loading branch information...
shankari committed Feb 24, 2018
1 parent a4f623e commit 2666a68ff25376ee76f8179f8e47796ad01d03bc
Showing with 2 additions and 2 deletions.
  1. +2 −2 emission/tests/netTests/TestHabiticaAutocheck.py
@@ -20,7 +20,7 @@
import emission.analysis.result.metrics.time_grouping as earmt
import emission.core.get_database as edb
import emission.core.wrapper.entry as ecwe
import emission.core.wrapper.motionactivity as ecwm
import emission.core.wrapper.modeprediction as ecwm
import emission.core.wrapper.section as ecws
import emission.storage.decorations.analysis_timeseries_queries as esda
import emission.storage.decorations.local_date_queries as esdl
@@ -102,7 +102,7 @@ def _fillDates(self, object, prefix, ardt, timezone):
def _fillModeDistanceDuration(self, section_list):
for i, s in enumerate(section_list):
dw = s.data
dw.sensed_mode = ecwm.MotionTypes.BICYCLING
dw.sensed_mode = ecwm.PredictedModeTypes.BICYCLING
dw.duration = (i + 1) * 100
dw.distance = (i + 1.5) * 1000
s['data'] = dw

0 comments on commit 2666a68

Please sign in to comment.
You can’t perform that action at this time.