Skip to content

Commit 2efa767

Browse files
committed
Update feature downloading for multi-channel; include labels
1 parent 57826a3 commit 2efa767

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cesium_app/handlers/feature.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ def get(self, featureset_id=None, action=None):
2424
self.current_user)
2525
fset_path = featureset.file_uri
2626
fset, data = featurize.load_featureset(fset_path)
27-
fset.index.name = 'ts_name'
28-
fset.columns = fset.columns.droplevel('channel')
29-
fset.columns.name = None
27+
if 'labels' in data:
28+
fset['labels'] = data['labels']
3029
self.set_header("Content-Type", 'text/csv; charset="utf-8"')
3130
self.set_header(
3231
"Content-Disposition", "attachment; "

0 commit comments

Comments
 (0)