get complete particle from particle ID
Hi,
I'm looking for a function that takes the ID of a particle and returns the complete particle. Something like
particle = function(
The description of getParticleList makes it sound like it does the job, but it doesn't.
particleList = getParticleList
seems to only work for SimpleSpheres, because when I use RotSpheres I get an error:
TypeError: No registered converter was able to extract a C++ reference to type esys::lsm:
Any suggestions?
More context: Checkpointers save bond information as
ID1 ID2 BondTag
I am trying to recreate those bonds after loading the information from a checkpointer file. The ConnectionFinder looks something like
ConnectionFinder(
maxDist = someNumber,
bondTag = BondTag,
pList = getParticleList
but as I said, the part with getParticleList doesn't work.
Best Regards,
Lukas
edit: Actually the problem is that ConnectionFinder only takes SimpleSphere objects and not RotSphere objects. Had I read the documentation more carefully I wouldn't have asked the question.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Lukas Liebisch
- Solved:
- Last query:
- Last reply: