Differences between revisions 1 and 2
Revision 1 as of 2015-06-16 17:59:58
Size: 2056
Editor: djs252
Comment:
Revision 2 as of 2015-06-16 18:00:41
Size: 2049
Editor: djs252
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
 . '''Target Outcome '''  . Target Outcome
  • Target Outcome
  • To read a csv file of pressure data and average and scale the values and return key values Prerequisites
  • Python3 with numpy and scipy
  • A terminal or console to run the file
  • Pressure csv file from the Repository

Prerequisite Protocols

Python Scripts

input

csv_filereader takes the csv files generated by patellofemoral joint testing, which consist of information for scaling the data, as well as multiple matrices which known as the 'frames'. The outputs of the pressure plates in the patellofemoral testing

Logic

  • This script iterates through the file and locates each 'Frame' or matrix and adds it to an summation matrix, the script also keeps track of each instance of 'Frame' keeping a counter so at the end the summation matrix may be averaged.The script also scans for instances of:

scaling factor: which is used on the matrix to get the final MPa value of each sensle area sensle area: the size of each measurment location on the pressure pad matrix size: used when iterating through 'Frame'

The script then iterates through each value of the summation array to find: maximum pressure: the maximum pressure in the averaged matrix total pressure area:the total number of squares being activated multiplied by the size of each square force: the integral of the maximum pressure and the total pressure area

output

  • csv_filereader script returns the averaged matrix over time of testing, the maximum average pressure, the total sensle area used, and the maximum force (the integral of pressure and area) of the force plate. All these values are written into an output text file in the directory the script is being run.

Specifications/PressureAnalysis (last edited 2019-04-17 17:59:52 by owings)