copySetup
Create copy of cgv.CGV
object
Syntax
cgvObj2 = cgvObj1.copySetup()
Description
creates a copy of a
cgvObj2
= cgvObj1.copySetup()cgv.CGV
object, cgvObj1
. The copied object,
cgvObj2
, has the same configuration as
cgvObj1
, but does not copy results of the
execution.
Examples
Make a copy of a cgv.CGV
object, set it to
run in a different mode, then run and compare the objects in a cgv.Batch
object.
cgvModel = 'myCGVModel'; cgvObj1 = cgv.CGV(cgvModel, 'connectivity', 'sim'); cgvObj1.run(); cgvObj2 = cgvObj1.copySetup() cgvObj2.setMode('sil'); cgvObj2.run();
Tips
You can use this method to make a copy of a
cgv.CGV
object and then modify the object to run in a different mode by callingsetMode
.If you have a
cgv.CGV
object, which reported errors or failed at execution, you can use this method to copy the object and rerun it. The copied object has the same configuration as the original object, therefore you might want to modify the location of the output files by callingsetOutputDir
. Otherwise, during execution, the copiedcgv.CGV
object overwrites the output files.