You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered:
see mailing list:
The text was updated successfully, but these errors were encountered: