Skip to content

Commit 93c80e0

Browse files
author
André Böni
committed
+ finalize conda build
1 parent d16b145 commit 93c80e0

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

README.rst

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -236,28 +236,31 @@ Simple Pipeline
236236
# Detect events
237237
events = api.detect_events(trial, config)
238238
try:
239-
# detect events (marker based)
240-
events = api.check_events(events, config)
241-
242239
# check events
243-
api.check_events(events, config)
240+
api.check_events(events)
244241
245242
# write events to c3d in the same file
246-
api.write_events_to_c3d(trial, events)
243+
api.write_events_to_c3d("./test_small.c3d", events, './test.c3d')
244+
245+
# add events to trial
246+
trial.events = events
247247
248248
# segment trial to gait cycles. (Events are already existing in the c3d file)
249249
trial_segmented = api.segment_trial(trial)
250250
251251
# calculate features
252252
features = api.calculate_features(trial_segmented, config)
253253
254+
# normalise time
255+
trial_normalized = api.time_normalise_trial(trial_segmented)
256+
254257
# save features
255-
faetures.to_netcdf("features.nc")
258+
features.to_netcdf("features.nc")
256259
257260
# export segmented trial to netcdf
258-
api.export_trial(trial_segmented, config, "output.nc")
261+
api.export_trial(trial_segmented, "output_segments")
262+
api.export_trial(trial_normalized, "output_norm")
259263
260-
api.export_trial(trial_segmented, config, "output.c3d")
261264
except ValueError as e:
262265
print(e)
263266

0 commit comments

Comments
 (0)