File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ def post(self):
6767
6868 dataset_id = data ['datasetID' ]
6969 model_id = data ['modelID' ]
70+ # If only a subset of specified dataset is to be used, a list of the
71+ # corresponding time series file names can be provided
7072 ts_names = data .get ('ts_names' )
7173
7274 dataset = Dataset .get (Dataset .id == data ["datasetID" ])
@@ -89,6 +91,7 @@ def post(self):
8991
9092 executor = yield self ._get_executor ()
9193
94+ # If only a subset of the dataset is to be used, get specified files
9295 if ts_names :
9396 ts_uris = [f .uri for f in dataset .files if os .path .basename (f .name )
9497 in ts_names or os .path .basename (f .name ).split ('.npz' )[0 ]
Original file line number Diff line number Diff line change @@ -217,17 +217,14 @@ def test_predict_specific_ts_name():
217217 data = {'datasetID' : ds .id ,
218218 'ts_names' : ['217801' ],
219219 'modelID' : m .id }
220- print ('data:' , data )
221220 response = requests .post ('{}/predictions' .format (cfg ['server' ]['url' ]),
222221 data = json .dumps (data )).json ()
223- print ('response dict:' , response )
224222 assert response ['status' ] == 'success'
225223
226224 n_secs = 0
227225 while n_secs < 5 :
228226 pred_info = requests .get ('{}/predictions/{}' .format (
229227 cfg ['server' ]['url' ], response ['data' ]['id' ])).json ()
230- print (pred_info )
231228 if pred_info ['status' ] == 'success' and pred_info ['data' ]['finished' ]:
232229 assert isinstance (pred_info ['data' ]['results' ]['217801' ]
233230 ['features' ]['total_time' ],
Original file line number Diff line number Diff line change @@ -96,7 +96,6 @@ def logs_from_config(supervisor_conf):
9696with nostdout ():
9797 from cesium_app .config import cfg
9898
99- watched .append (cfg ['paths' ]['err_log_path' ])
10099watched .append ('log/error.log' )
101100watched .append ('log/nginx-error.log' )
102101
You can’t perform that action at this time.
0 commit comments