Skip to content

Commit f04a2a9

Browse files
committed
Update feature downloading for multi-channel; include labels
De-lint
1 parent 3be4839 commit f04a2a9

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
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; "

static/js/components/Download.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import React from 'react';
2+
import PropTypes from 'prop-types';
3+
24

35
const Download = (props) => {
46
const style = {
@@ -19,10 +21,7 @@ const Download = (props) => {
1921
);
2022
};
2123
Download.propTypes = {
22-
ID: React.PropTypes.oneOfType([
23-
React.PropTypes.number,
24-
React.PropTypes.string]).isRequired,
25-
url: React.PropTypes.string.isRequired
24+
url: PropTypes.string.isRequired
2625
};
2726

2827
export default Download;

0 commit comments

Comments
 (0)