From: Christopher N. <cn...@it...> - 2008-09-18 20:07:01
|
Hi Dejan, collectIDs does the trick. Many thanks. Cheers, Chris. -----Original Message----- From: pcs...@li... [mailto:pcs...@li...] On Behalf Of Pecevski Dejan Sent: Friday, 19 September 2008 12:57 AM To: pcs...@li... Subject: Re: [Pcsim-users] Editing object properties Hi Chris, a_b_syn_project = ConnectionsProjection( a_nrn_popul, a_b_nrn_popul, a_b_syn_factory, PredicateBasedConnections(EuclidianDistanceConnectionPredicate(a_b_connp , 20 )), collectIDs = True, collectPairs = True ) would do the job. Notice the collectIDs flag set to true. Best, Dejan Christopher Nolan wrote: > Hi all, > > How can I change the properties of an existing object? I've created > some connections with > > a_b_syn_project = ConnectionsProjection( > a_nrn_popul, a_b_nrn_popul, a_b_syn_factory, > PredicateBasedConnections(EuclidianDistanceConnectionPredicate( > a_b_connp, 20 )), > collectPairs = True ) > > After simulating for some amount of time, I want to change the weights > of these connections. I can get the object ids with e.g. > a_b_syn_project(0), but if I try to get the object handle with > net.object(a_b_syn_project(0)), python segfaults, so I guess that's not > the correct method. > > Any ideas? > > Cheers, > Chris. > > > ------------------------------------------------------------------------ - > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Pcsim-users mailing list > Pcs...@li... > https://lists.sourceforge.net/lists/listinfo/pcsim-users > ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Pcsim-users mailing list Pcs...@li... https://lists.sourceforge.net/lists/listinfo/pcsim-users |