Difference between revisions of "Scripted creation of a project in the Linux command line"

From Dynamo
Jump to navigation Jump to search
Line 5: Line 5:
 
We then create a single script where we write all the commands that we would use interactively to create a project. Use any editor in your system to open a file, let's  call it <tt>createProject.sh</tt>, and input the lines:
 
We then create a single script where we write all the commands that we would use interactively to create a project. Use any editor in your system to open a file, let's  call it <tt>createProject.sh</tt>, and input the lines:
  
<code>
+
<pre>
 
dynamo_vpr prtest
 
dynamo_vpr prtest
 
dynamo_vpr_put prtest -data ttest/data
 
dynamo_vpr_put prtest -data ttest/data
Line 19: Line 19:
 
dynamo_vpr_put prtest -dim_r1 32
 
dynamo_vpr_put prtest -dim_r1 32
 
dynamo_vpr_put prtest -destination standalone
 
dynamo_vpr_put prtest -destination standalone
 +
dynamo_vpr_put prtest -cores 2
 
dynamo_vpr_check prtest
 
dynamo_vpr_check prtest
 
dynamo_vpr_unfold prtest
 
dynamo_vpr_unfold prtest
</code>
+
</pre>
  
Now, you can run this script in a Linux shell (provided you have [[ standalone#Activating the standalone  | activated]]  ''Dynamo'' in it)
+
Here, we are just indicating a minimum amount of input that you need to create a working project.
 +
 
 +
Now, you can run this script in a Linux shell (provided you have [[ standalone#Activating the standalone  | activated]]  ''Dynamo'' in it) by
 +
 
 +
<tt> dynamo createProject.sh </tt>
 +
 
 +
After that, you can just execute the project

Revision as of 10:52, 22 September 2016

It is possible to fully run Dynamo outside of Matlab AND the Dynamo standalone, as described here

Here we show how to create from scratch a project.

We then create a single script where we write all the commands that we would use interactively to create a project. Use any editor in your system to open a file, let's call it createProject.sh, and input the lines:

dynamo_vpr prtest
dynamo_vpr_put prtest -data ttest/data
dynamo_vpr_put prtest -template ttest/template.em
dynamo_vpr_put prtest -table ttest/initial.tbl
dynamo_vpr_put prtest -mask ttest/mask.em
dynamo_vpr_put prtest -cmask ttest/mask.em
dynamo_vpr_put prtest -fmask ttest/fmask.em
dynamo_vpr_put prtest -smask ttest/mask_smoothing.em
dynamo_vpr_put prtest -ite_r1 2
dynamo_vpr_put prtest -ca_r1 360
dynamo_vpr_put prtest -cs_r1 45
dynamo_vpr_put prtest -dim_r1 32
dynamo_vpr_put prtest -destination standalone
dynamo_vpr_put prtest -cores 2
dynamo_vpr_check prtest
dynamo_vpr_unfold prtest

Here, we are just indicating a minimum amount of input that you need to create a working project.

Now, you can run this script in a Linux shell (provided you have activated Dynamo in it) by

dynamo createProject.sh

After that, you can just execute the project