[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [IMP-dev] Get particle by name



Hi,

I solved by creating the dictionary: 

> pidx[pname] = pindex


when the particle is added to the container.

Davide


On Oct 18, 2011, at 4:55 PM, Davide Baù wrote:

> Hi,
> 
> I've searched about this but did not find an answer. I'd like to know if it's possible to get a particle (from, e.g., a ListSingletonContainer) using its name instead of its index.
> 
> Thanks,
> Davide