Skip to content

Commit

Permalink
fixed Subject attrib
Browse files Browse the repository at this point in the history
  • Loading branch information
Stas committed Jun 20, 2019
1 parent 9b89d31 commit 455a221
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 41 deletions.
63 changes: 26 additions & 37 deletions .idea/workspace.xml

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

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

sns.set()


@attr.s
class Subject(object):
dir_path = attr.ib(default='')
id = attr.ib(init=False)
df_folder = attr.ib(default='')
df_dict = attr.ib({'square_left': [], 'square_right': [], 'tri_left': [], 'tri_right': []})
dir_path = attr.ib(default='')
df_folder = attr.ib(default='')

def __attrs_post_init__(self):
self.id = os.path.split(self.dir_path)[1]
Expand Down

0 comments on commit 455a221

Please sign in to comment.