Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Particle exclusions cannot be checkpointed #2418

Closed
KaiSzuttor opened this issue Dec 17, 2018 · 0 comments
Closed

Particle exclusions cannot be checkpointed #2418

KaiSzuttor opened this issue Dec 17, 2018 · 0 comments

Comments

@KaiSzuttor
Copy link
Member

see mailing list:

Hi everybody!

I wanted to start using the checkpointing function in Espresso 4.0 and followed closely the documentation.
I can checkpoint everything without an error, registering quantities with

checkpoint.register("system.non_bonded_inter")
checkpoint.register("system.bonded_inter")
checkpoint.register("system.thermostat")
checkpoint.register("system.part")

commands and saving everything in my integration loop with the checkpoint.save( ) command works fine.

But upon calling the checkpoint-file with checkpoint.load( ), I get the following error:

Traceback (most recent call last):
File "newcubes.py", line 135, in
checkpoint.load()
File "/home/lv70488/a1306705/espresso-4-0/build/src/python/espressomd/checkpointing.py", line 232, in load
checkpoint_data = pickle.load(f)
File "particle_data.pyx", line 1819, in espressomd.particle_data.ParticleList.setstate
File "particle_data.pyx", line 1918, in espressomd.particle_data.ParticleList._place_new_particle
File "particle_data.pyx", line 1593, in espressomd.particle_data.ParticleHandle.update
File "particle_data.pyx", line 1149, in espressomd.particle_data.ParticleHandle.exclusions.set
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Now as far as I know, this is an error-message produced by numpy if one wants to check the truth value of an array.

Is this a bug in the code or did I not pass an argument correctly?

Thanks for the help!
Martin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant