Skip to content

Instantly share code, notes, and snippets.

@titipata
Last active November 18, 2015 07:14
Show Gist options
  • Select an option

  • Save titipata/56423f067acb4bde5299 to your computer and use it in GitHub Desktop.

Select an option

Save titipata/56423f067acb4bde5299 to your computer and use it in GitHub Desktop.

Guide to use emg_analyzer

First, we have to add path of the package first

import sys
sys.path.insert(0, '/path/to/emg_gyro/emg_analyzer/')

Suppose we already load data using awscli to data/, here is how to read data from .ASC file into Pandas dataframe

import emg_analyzer as ea
paths_to_asc = ea.list_path('data/')
emg_df = ea.read_asc_file(paths_to_asc[0])

We can also read all the path and concat all the result together which will give all data together, i.e.

emg_df_all = ea.read_asc_file_all(paths_to_asc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment