[Top][All Lists]

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

[ESPResSo-users] Checkpoint load bug?

From: Martin Kaiser
Subject: [ESPResSo-users] Checkpoint load bug?
Date: Fri, 14 Dec 2018 16:32:59 +0100

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 


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

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

Traceback (most recent call last):
  File "", line 135, in <module>
  File "/home/lv70488/a1306705/espresso-4-0/build/src/python/espressomd/", 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!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]