Skip to content

Commit 160b51a

Browse files
committedNov 26, 2014
Simplified the dflowdata command line tool.
Fixes issue #84.
1 parent 00f2e5d commit 160b51a

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed
 

‎bin/dflowdata

+1-4
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ if __name__ == "__main__":
1616
parser.add_argument('-y', '--metadatafile', type=str,
1717
help="The path to a meta data yaml file.", default=None)
1818

19-
parser.add_argument('-i', '--interpolate', type=bool,
20-
help="Interpolate the marker data.", default=False)
21-
2219
parser.add_argument('outputfile', type=str,
2320
help="The path to the output file.")
2421

@@ -27,5 +24,5 @@ if __name__ == "__main__":
2724
data = DFlowData(mocap_tsv_path=args.mocapfile,
2825
record_tsv_path=args.recordfile,
2926
meta_yml_path=args.metadatafile)
30-
data.clean_data(interpolate_markers=args.interpolate)
27+
data.clean_data()
3128
data.write_dflow_tsv(args.outputfile)

‎gaitanalysis/motek.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1513,7 +1513,8 @@ def _merge_mocap_record(self):
15131513

15141514
return data
15151515

1516-
def extract_processed_data(self, event=None, index_col=None, isb_coordinates=False):
1516+
def extract_processed_data(self, event=None, index_col=None,
1517+
isb_coordinates=False):
15171518
"""Returns the processed data in a data frame. If an event name is
15181519
provided, then a data frame with only that event is returned.
15191520
@@ -1571,9 +1572,8 @@ def extract_processed_data(self, event=None, index_col=None, isb_coordinates=Fal
15711572

15721573
def write_dflow_tsv(self, filename, na_rep='NA'):
15731574

1574-
# This must preserve the mocap column order and can only append the
1575-
# record to the right most columns.
1575+
# TODO: This must preserve the mocap column order and can only
1576+
# append the record to the right most columns.
15761577

15771578
self.data.to_csv(filename, sep='\t', float_format='%1.6f',
1578-
na_rep=na_rep, index=False,
1579-
cols=self.mocap_column_labels)
1579+
na_rep=na_rep, index=False)

0 commit comments

Comments
 (0)
Please sign in to comment.