diff --git a/README.md b/README.md index 9ea7acd..b9fcf4b 100644 --- a/README.md +++ b/README.md @@ -52,8 +52,8 @@ umat1 = NeoHooke(C10=1.5,K=2000) umat2 = Yeoh(C10=0.5,C20=-0.01,C30=0.2, K=2000) #Prepare experimental data -cdir = os.getcwd() -dataset = read_file(cdir+'//_hypermat//_calibration//_data//_data_2.csv', delimiter=',', dtype=float) +dir_path = os.path.dirname(os.path.realpath(__file__)) +dataset = read_file(dir_path+'//_data//_data_2.csv', delimiter=',', dtype=float) data = to_dict(dataset[1:,:], ['time', 'strain', 'stress']) strain = data['strain'] stress = data['stress'] @@ -76,7 +76,7 @@ test2.plot_model(c='g') You should get something like that:
- +
```