From 760eb70485d4d99d8c6cc21e55eb3e1acfc091ae Mon Sep 17 00:00:00 2001 From: Mohamed ZAARAOUI <115699524+ZAARAOUI999@users.noreply.github.com> Date: Tue, 19 Dec 2023 17:43:47 +0100 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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:
- +
```