From 851909b00225cd59ea1e49a698cae9c92dd35a4f Mon Sep 17 00:00:00 2001 From: Saurabh Deshpande Date: Tue, 26 Jan 2021 17:27:10 +0100 Subject: [PATCH] Update runSimulation.py --- scripts/runSimulation.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/runSimulation.py b/scripts/runSimulation.py index 1b124d6..d5db5d4 100644 --- a/scripts/runSimulation.py +++ b/scripts/runSimulation.py @@ -1,3 +1,5 @@ +#--------------------------- Run SOFA Simulation - Saurabh Deshpande -----------------------------# + import os import subprocess import numpy as np @@ -6,7 +8,7 @@ import pandas as pd #Or we can generate forces in random directions - +#qt_nodes.csv contains all the nodes on which forces will be to generate the training data df = pd.read_csv('qt_nodes.csv', names=['u'], header = None) topnodes= df['u'].values @@ -15,7 +17,7 @@ topnodes = [ int(x) for x in topnodes] #print(topnodes) #print("Length of array is", len(topnodes)) #number of training example generated at a particular node -m = 450 +m = 100 #Index on which forces are applied on this node numbers index = topnodes -- GitLab