Skip to content

Processing EMG data results in null array #469

Answered by zen-juen
ijhua asked this question in Q&A
Discussion options

You must be logged in to vote

I tried running signal_synchrony on the data you provided and it seems alright

data = pd.read_csv('sample_EMG.csv').iloc[:, 1:6]
data.columns = ['time', 'gastroc', 'hamstring', 'trigger', 'comments']

data[['gastroc', 'hamstring']] = pd.DataFrame.pad(data[['gastroc', 'hamstring']])

nk.signal_synchrony(data['gastroc'], data['hamstring'], method="hilbert")
Out[175]: 
array([0.86847355, 0.62358962, 0.57553423, ..., 0.86722597, 0.85865494,
       0.98653406])

nk.signal_synchrony(data['gastroc'], data['hamstring'], method="correlation", window_size=500)
Out[176]: 
array([-0.47426556, -0.47426556, -0.47426556, ..., -0.47426556,
       -0.47426556, -0.47426556])

Could you see if this is what …

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
4 replies
@ijhua
Comment options

@zen-juen
Comment options

@ijhua
Comment options

@ijhua
Comment options

Comment options

You must be logged in to vote
7 replies
@DominiqueMakowski
Comment options

@zen-juen
Comment options

@ijhua
Comment options

@zen-juen
Comment options

@ijhua
Comment options

Comment options

You must be logged in to vote
1 reply
@ijhua
Comment options

Answer selected by zen-juen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants