Skip to content

Commit

Permalink
removed useless comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Stas committed Jun 20, 2019
1 parent d51c2c1 commit 6f901be
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 148 deletions.
161 changes: 19 additions & 142 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions submovements/DataProcessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import numpy as np
from scipy.signal import butter, filtfilt
from pathlib import Path
import re


@attr.s
class Trial():
Expand All @@ -24,7 +22,6 @@ class Trial():
stimulus = attr.ib(default='') # Trial stimulus
raw_file_path = attr.ib(default='') # Path to trial raw data
id = attr.ib(default='') # Subject ID (number)
#time = attr.ib(default='') # Time vector

# Data DataFrame which contains Position vectors and Velocity vectors.
# We can choose which vectors to include from ('x','y','z') by using
Expand Down
6 changes: 3 additions & 3 deletions submovements/fit_submovements.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def optimize_jerk(trial, plot_fit):
for trial in raw_data_gen:
trial.preprocess(pproc)
trial.save_df(trial.data, path_to_trials)
res = optimize_jerk(trial, 0)
print(f'Parameters: {res[2]}')
print(f'Parameter errors: {res[3]}')
res = optimize_jerk(trial, True)
print(f'Parameters: {res[1]}')
print(f'Parameter errors: {res[2]}')
break

0 comments on commit 6f901be

Please sign in to comment.