Skip to content

Commit 98e1b41

Browse files
committed
Itinerum commit e-mission#2, no testing, saving changes thus far
1 parent 3cf0a45 commit 98e1b41

File tree

9 files changed

+17
-83
lines changed

9 files changed

+17
-83
lines changed

emission/core/wrapper/confirmedtrip.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ class Confirmedtrip(ecwt.Trip):
1919
# the user input will have all `manual/*` entries
2020
# let's make that be somewhat flexible instead of hardcoding into the data model
2121
"user_input": ecwb.WrapperBase.Access.WORM
22-
"itinerum_boolean": ecwb.WrapperBase.Access.WORM
2322
})
2423

2524
def _populateDependencies(self):

emission/core/wrapper/entry.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,8 @@ def _getData2Wrapper():
129129
### ** END: prediction objects
130130
### ** BEGIN: confirmed objects which combine inferred and user input values
131131
"analysis/confirmed_trip": "confirmedtrip",
132-
"analysis/confirmed_section": "confirmedsection",
132+
"analysis/confirmed_section": "confirmedsection"
133133
### ** END: confirmed objects which combine inferred and user input values
134-
"itinerum": "itinerum_boolean"
135134
}
136135

137136
@staticmethod

emission/core/wrapper/itinerum_boolean.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

emission/core/wrapper/pipelinestate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class PipelineStages(enum.Enum):
2424
USER_MODEL = 7
2525
RECOMMENDATION = 8
2626
OUTPUT_GEN = 9
27-
ITINERUM_BOOLEAN = 15
27+
EXPORT_DATA = 15
2828

2929
class PipelineState(ecwb.WrapperBase):
3030
props = {"pipeline_stage": ecwb.WrapperBase.Access.RW, # the value of the stage from the enum above

emission/itinerum/__init__.py

Whitespace-only changes.

emission/itinerum/itinerum_boolean.py

Lines changed: 0 additions & 49 deletions
This file was deleted.

emission/pipeline/intake_stage.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import emission.net.ext_service.habitica.executor as autocheck
3434

3535
import emission.storage.decorations.stats_queries as esds
36-
import emission.itinerum.itinerum_boolean as eii
36+
import emission.exportdata.export_data as eeded
3737

3838
def run_intake_pipeline(process_number, uuid_list):
3939
"""
@@ -173,10 +173,10 @@ def run_intake_pipeline_for_user(uuid):
173173

174174
esds.store_pipeline_time(uuid, ecwp.PipelineStages.OUTPUT_GEN.name,
175175
time.time(), ogt.elapsed)
176-
with ect.Timer() as ibt:
177-
logging.info("*" * 10 + "UUID %s: setting itinerum boolean to false" % uuid + "*" * 10)
178-
print(str(arrow.now()) + "*" * 10 + "UUID %s: setting itinerum boolean to false" % uuid + "*" * 10)
179-
eii.set_itinerum_boolean(uuid)
176+
with ect.Timer() as edt:
177+
logging.info("*" * 10 + "UUID %s: exporting data" % uuid + "*" * 10)
178+
print(str(arrow.now()) + "*" * 10 + "UUID %s: exporting data" % uuid + "*" * 10)
179+
eeded.set_export_data(uuid)
180180

181-
esds.store_pipeline_time(uuid, ecwp.PipelineStages.ITINERUM_BOOLEAN.name,
182-
time.time(), ibt.elapsed)
181+
esds.store_pipeline_time(uuid, ecwp.PipelineStages.EXPORT_DATA.name,
182+
time.time(), edt.elapsed)

emission/storage/pipeline_queries.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,20 +185,20 @@ def mark_mode_inference_done(user_id, last_section_done):
185185
def mark_mode_inference_failed(user_id):
186186
mark_stage_failed(user_id, ps.PipelineStages.MODE_INFERENCE)
187187

188-
def get_time_range_for_itinerum_boolean(user_id):
189-
tq = get_time_range_for_stage(user_id, ps.PipelineStages.ITINERUM_BOOLEAN)
188+
def get_time_range_for_export_data(user_id):
189+
tq = get_time_range_for_stage(user_id, ps.PipelineStages.EXPORT_DATA)
190190
tq.timeType = "data.end_ts"
191191
return tq
192192

193-
def mark_label_inference_done(user_id, last_trip_done):
193+
def mark_export_data_done(user_id, last_trip_done):
194194
if last_trip_done is None:
195-
mark_stage_done(user_id, ps.PipelineStages.ITINERUM_BOOLEAN, None)
195+
mark_stage_done(user_id, ps.PipelineStages.EXPORT_DATA, None)
196196
else:
197-
mark_stage_done(user_id, ps.PipelineStages.ITINERUM_BOOLEAN,
197+
mark_stage_done(user_id, ps.PipelineStages.EXPORT_DATA,
198198
last_trip_done.data.end_ts + END_FUZZ_AVOID_LTE)
199199

200-
def mark_itinerum_boolean_failed(user_id):
201-
mark_stage_failed(user_id, ps.PipelineStages.ITINERUM_BOOLEAN)
200+
def mark_export_data_failed(user_id):
201+
mark_stage_failed(user_id, ps.PipelineStages.EXPORT_DATA)
202202

203203
def get_time_range_for_output_gen(user_id):
204204
return get_time_range_for_stage(user_id, ps.PipelineStages.OUTPUT_GEN)

emission/storage/timeseries/builtin_timeseries.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ def __init__(self, user_id):
8383
"inference/prediction": self.analysis_timeseries_db,
8484
"analysis/inferred_section": self.analysis_timeseries_db,
8585
"analysis/confirmed_trip": self.analysis_timeseries_db,
86-
"analysis/confirmed_section": self.analysis_timeseries_db,
87-
"itinerum": self.analysis_timeseries_db
86+
"analysis/confirmed_section": self.analysis_timeseries_db
8887
}
8988

9089

0 commit comments

Comments
 (0)