Skip to content

Commit c0ea7e4

Browse files
committed
Remove outdated line from tools/watch_logs
1 parent 3639646 commit c0ea7e4

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

cesium_app/handlers/prediction.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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]

cesium_app/tests/frontend/test_predict.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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'],

tools/watch_logs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ def logs_from_config(supervisor_conf):
9696
with nostdout():
9797
from cesium_app.config import cfg
9898

99-
watched.append(cfg['paths']['err_log_path'])
10099
watched.append('log/error.log')
101100
watched.append('log/nginx-error.log')
102101

0 commit comments

Comments
 (0)