SCIRun User Mailing List

Text archives Help


Re: [SCIRUN-USERS] How to loop through a network in SCIRun?


Chronological Thread 
  • From: Jess Tate <jess@sci.utah.edu>
  • To: Tomasz Moszkowski <tmoszkowski@gmail.com>
  • Cc: "scirun-users@sci.utah.edu List" <scirun-users@sci.utah.edu>
  • Subject: Re: [SCIRUN-USERS] How to loop through a network in SCIRun?
  • Date: Tue, 15 Mar 2016 16:21:37 -0600

Hi Tomasz,

If you save out the input currents as separate matrices, then they can easily be loaded one at a time in the network with some bash or python scripting.  There is an example of bash scripting inputs into a network in the SCIRun-Exchange (https://github.com/SCIInstitute/SCIRun-Exchange.git) in the Defibrillation-Evaluation directory.  There is an example for SCIRun 4 and 5.  These examples use the matlab interface, though for scirun 5, it is run through python and needs a 2015 version of matlab.  


There are some python script examples in the the source code of scirun 5, in src/example_nets/python_scripts that can help you figure out how to write a python script to load inputs.

cheers,
Jess


On Mar 15, 2016, at 1:56 PM, Tomasz Moszkowski <tmoszkowski@gmail.com> wrote:

Hi Dan,

Thanks for the suggestion! When you come to think of it, there's the matlab interface in SCIRun 4.7 that I could also use. I'll give them a try.

All the best,
Tomasz

wt., 15.03.2016 o 20:20 użytkownik Dan White <dwhite@sci.utah.edu> napisał:
This is a feature of SCIRun 5 and its Python interface, which enables scripting to do exactly as you described: looping through parameters sets for arbitrary modules. Version 5 is in alpha at the moment, and Python support is very new, but you can try it here (you'll need to build the latest from source): https://github.com/SCIInstitute/SCIRun.

You can also watch this page (https://github.com/SCIInstitute/SCIRun/releases) to wait for the latest stable release (one is planned for this week).

I'll refer you to Jess, our resident SCIRun 5 scripting expert, for help with specifics, if you do try it (jess@sci.utah.edu).
Dan


On 3/15/2016 1:14 PM, Tomasz Moszkowski wrote:
Hi everyone,

I would like to perform a FEM simulation with a range of input parameters (eg. a two-electrode setup, where I apply a rising current amplitude). Do you know of any way to pass a set of parameters into the net in sequence? The only block I know of is the "GetColumnOrRowFromMatrix". The problem is that this module performs a loop, in which every iteration has a fixed duration . Each of my calculations last a couple of minutes, so the module does not seem to do the trick. Has anyone tried to loop through a list of parameters in SCIRun?

I would much appreciate your help!

All the best,
Tomasz


________________________________________________
SCIRun users mailing list:  scirun-users@sci.utah.edu
http://www.sci.utah.edu/software/scirun.html
To unsubscribe, email sympa@lists.sci.utah.edu with the "unsubscribe scirun-users" in the message body.


________________________________________________
SCIRun users mailing list:  scirun-users@sci.utah.edu
http://www.sci.utah.edu/software/scirun.html
To unsubscribe, email sympa@lists.sci.utah.edu with the "unsubscribe scirun-users" in the message body.

________________________________________________
SCIRun users mailing list:  scirun-users@sci.utah.edu
http://www.sci.utah.edu/software/scirun.html
To unsubscribe, email sympa@lists.sci.utah.edu with the "unsubscribe scirun-users" in the message body.




Archive powered by MHonArc 2.6.18.

Top of page