Skip to content

Commit

Permalink
Merge pull request #688 from shankari/add_destination_confirm
Browse files Browse the repository at this point in the history
Add support for the new destination_confirm class
  • Loading branch information
shankari authored May 9, 2019
2 parents 18d2364 + eb11145 commit be197e6
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions emission/core/wrapper/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ def _getData2Wrapper():
"manual/mode_confirm": "userlabel",
# user confirmation of the travel purpose
"manual/purpose_confirm": "userlabel",
# user confirmation of the destination (unsure how this will
# interact with purpose
"manual/destination_confirm": "userlabel",
### END: incoming data types ###
### BEGIN: analysis result data types ###
### ** BEGIN: objects generated after the initial segmentation step **
Expand Down
12 changes: 12 additions & 0 deletions emission/net/usercache/formatters/android/destination_confirm.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
from builtins import *
import logging
import emission.net.usercache.formatters.generic.userlabel as fgl

def format(entry):
return fgl.format(entry)
12 changes: 12 additions & 0 deletions emission/net/usercache/formatters/ios/destination_confirm.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
from builtins import *
import logging
import emission.net.usercache.formatters.generic.userlabel as fgl

def format(entry):
return fgl.format(entry)
1 change: 1 addition & 0 deletions emission/storage/timeseries/builtin_timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def __init__(self, user_id):
"manual/incident": self.timeseries_db,
"manual/mode_confirm": self.timeseries_db,
"manual/purpose_confirm": self.timeseries_db,
"manual/destination_confirm": self.timeseries_db,
"segmentation/raw_trip": self.analysis_timeseries_db,
"segmentation/raw_place": self.analysis_timeseries_db,
"segmentation/raw_section": self.analysis_timeseries_db,
Expand Down

0 comments on commit be197e6

Please sign in to comment.