Example 1: class Step_Data - Basics

Download dataset

Start by downloading a test file from github:

Steps_125706.tdms

and save it an appropriate folder.

Import the class:

   from ec4py import Step_Data, AREA

Load a file:

   data = Step_Data("Steps_125706.tdms")

Plot file

Plots the data an shows that there are 11 step.

   data.plot()
   print(data.nr_of_steps)

Plot of Step

Plot the different steps on a relative time axis

The data is also normalized to


p = None
for x in range(2,data.nr_of_steps):
    line, p=data[x].plot("Time","i", AREA, plot=p )

Plot of Step

Plot of Step