README for data in Chapter 2 in Developing parametric finite element models of the residual limb – prosthetic socket system towards clinical application Author: J. W. Steer Date: 19 June 2019 This contains instructions for opening the .pkl file containing the data behind the figures. The .pkl file is strutured using dictionaries Opening the data file --------------------- The data file is encoded using the pickle package in python 3.6. The data is all stored within numpy arrays. The authors recommend downloading the anaconda distribution of python. """ import pickle import numpy with open('data.pkl', 'rb') as f: Data = pickle.load(f) """ Figure 5.3 -------- Interface pressure profiles Participant = ['Ideal', 'Adverse', 'Implant A', 'Impant B'] Example Data['Figure 5.3']['Ideal'] Returns a Nx4 numpy array of the individuals corresponding to vertices and pressure Figure 5.4 -------- 95th Percentile Strains Participant = ['A', 'B'] Socket = ['TSB', 'PTB', 'KBM'] Example Data['Figure 5.4']['A']['TSB'] Returns a numpy array of the 'Ideal', 'Adverse', 'Implant A', 'Impant B' strain Figure 5.6 -------- Strain distribution for participant A data = ['Ideal', 'Adverse', 'Implant A', 'Impant B'] Example Data['Figure 5.6']['Ideal'] Returns a numpy array of the bins and probability density Figure 5.7 -------- Strain distribution for participant B data = ['Ideal', 'Adverse', 'Implant A', 'Impant B'] Example Data['Figure 5.7']['Ideal'] Returns a numpy array of the bins and probability density