Skip to content

Commit 6afdb5c

Browse files
committed
Update feature downloading for multi-channel; include labels
1 parent d2e4dc7 commit 6afdb5c

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
@@ -22,9 +22,8 @@ def get(self, featureset_id=None, action=None):
2222
self.current_user)
2323
fset_path = featureset.file_uri
2424
fset, data = featurize.load_featureset(fset_path)
25-
fset.index.name = 'ts_name'
26-
fset.columns = fset.columns.droplevel('channel')
27-
fset.columns.name = None
25+
if 'labels' in data:
26+
fset['labels'] = data['labels']
2827
self.set_header("Content-Type", 'text/csv; charset="utf-8"')
2928
self.set_header(
3029
"Content-Disposition", "attachment; "

0 commit comments

Comments
 (0)