From: Saeed S. <sa...@gn...> - 2014-06-03 15:00:47
|
Dear Upi I will look at snippets and if I could not sovle the issue, I will ask with details. Thank you for your time. Saeed On 06/03/2014 11:47 AM, U.S.Bhalla wrote: > Dear Saeed, > Please look at the snippets regarding message passing. This is used > when during runtime you need to send data to one ore more objects. I > stress that this should NOT be used for sending data to the Python shell. > > It might help for you to write some pseudocode to indicate what it is > you are trying to do, and why. > > Best, > Upi > > On Tuesday 03 June 2014 08:05 PM, Saeed Shariati wrote: >> Dear Upi, >> >> In low level. I am developing a MasterHSolve to replace with the current >> HSolve and deals with batch of neurons for GPU+CPU. >> >> I tried to send data to the Shell for generating output, but my sending >> does not affect the output. My question is: Does the Shell keep an >> internal presentation for each object and for input we should change it? >> and what is the best method if a solver wants to generate output? (I >> mean standard outputs same as Table object) >> >> Thanks, >> Saeed >> >> On 06/03/2014 01:43 AM, U.S.Bhalla wrote: >>> Dear Saeed, >>> Unclear what you wish to do. There is a set of access functions >>> from Python to retrieve field values. For a compartment on >>> '/model/compt' you would do >>> >>> x = moose.element( '/model/compt' ) >>> print x.Vm >>> >>> if you want to access the value from the Python shell. The snippets in >>> Demos/snippets have many examples. >>> >>> If on the other hand you want to do a low-level transfer of information >>> between MOOSE objects, you can use the message sending mechanism below, >>> but the data will only go to objects which have been connected up >>> through message creation functions. There are examples of this also in >>> the snippets. >>> >>> Best, >>> Upi >>> >>> On Tuesday 03 June 2014 09:35 AM, Saeed Shariati wrote: >>>> Dear all, >>>> >>>> I'm trying to send Vm to the shell and according to the HSolve >>>> implementation, the value sets via the below mechanism: >>>> >>>> moose::Compartment::VmOut()->send(compartmentId.eref(), newVm); >>>> >>>> In the first glance, I thought that just by calling this method, in any >>>> place, we can change internal representation of Vm in the Shell and the >>>> output mechanism can read it via clock mechanim. >>>> >>>> But, for example when I send an specific value via this message, there is >>>> no change in the output in Python. Would you please guide me about the I/O >>>> mechanism in shell and also that command is the only thing that provides >>>> output? >>>> >>>> Thank you, >>>> Saeed >>>> ------------------------------------------------------------------------------ >>>> Learn Graph Databases - Download FREE O'Reilly Book >>>> "Graph Databases" is the definitive new guide to graph databases and their >>>> applications. Written by three acclaimed leaders in the field, >>>> this first edition is now available. Download your free book today! >>>> http://p.sf.net/sfu/NeoTech >>>> _______________________________________________ >>>> moose-devel mailing list >>>> moo...@li... >>>> https://lists.sourceforge.net/lists/listinfo/moose-devel >>> ------------------------------------------------------------------------------ >>> Learn Graph Databases - Download FREE O'Reilly Book >>> "Graph Databases" is the definitive new guide to graph databases and their >>> applications. Written by three acclaimed leaders in the field, >>> this first edition is now available. Download your free book today! >>> http://p.sf.net/sfu/NeoTech >>> _______________________________________________ >>> moose-devel mailing list >>> moo...@li... >>> https://lists.sourceforge.net/lists/listinfo/moose-devel >>> >>> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/NeoTech >> _______________________________________________ >> moose-devel mailing list >> moo...@li... >> https://lists.sourceforge.net/lists/listinfo/moose-devel > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > moose-devel mailing list > moo...@li... > https://lists.sourceforge.net/lists/listinfo/moose-devel > > |