Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Saurabh Deshpande
Deliverable_Rainbow
Commits
851909b0
"scripts/matomo.js" did not exist on "8cb00ad7f42d71252fbb41a5673627d9bbba0c64"
Commit
851909b0
authored
Jan 26, 2021
by
Saurabh Deshpande
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update runSimulation.py
parent
efee9b44
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
scripts/runSimulation.py
scripts/runSimulation.py
+4
-2
No files found.
scripts/runSimulation.py
View file @
851909b0
#--------------------------- Run SOFA Simulation - Saurabh Deshpande -----------------------------#
import
os
import
os
import
subprocess
import
subprocess
import
numpy
as
np
import
numpy
as
np
...
@@ -6,7 +8,7 @@ import pandas as pd
...
@@ -6,7 +8,7 @@ import pandas as pd
#Or we can generate forces in random directions
#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
)
df
=
pd
.
read_csv
(
'qt_nodes.csv'
,
names
=
[
'u'
],
header
=
None
)
topnodes
=
df
[
'u'
].
values
topnodes
=
df
[
'u'
].
values
...
@@ -15,7 +17,7 @@ topnodes = [ int(x) for x in topnodes]
...
@@ -15,7 +17,7 @@ topnodes = [ int(x) for x in topnodes]
#print(topnodes)
#print(topnodes)
#print("Length of array is", len(topnodes))
#print("Length of array is", len(topnodes))
#number of training example generated at a particular node
#number of training example generated at a particular node
m
=
45
0
m
=
10
0
#Index on which forces are applied on this node numbers
#Index on which forces are applied on this node numbers
index
=
topnodes
index
=
topnodes
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment