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

Py: pickle support for collision detection + test #2342

Merged
merged 3 commits into from
Oct 28, 2018

Conversation

RudolfWeeber
Copy link
Contributor

Fixes #1943

Pickling is based on the CollisionDetection.get_params() method.
The consistency of get_params() and get_params() is checked in the
collision detection test in addition to the the restore function
@fweik fweik added this to the Espresso 4.0.1 milestone Oct 28, 2018
@@ -52,6 +52,12 @@ class CollisionDetection(ut.TestCase):
part_type_after_glueing = 3
other_type = 5


def get_state_set_state_consistency(self):
state=self.s.collision_detection.get_params()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please add that check to the checkpoint test?

@codecov
Copy link

codecov bot commented Oct 28, 2018

Codecov Report

Merging #2342 into python will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           python   #2342   +/-   ##
======================================
  Coverage      71%     71%           
======================================
  Files         381     381           
  Lines       18905   18905           
======================================
  Hits        13587   13587           
  Misses       5318    5318

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 068323d...b1edbc4. Read the comment docs.

@fweik fweik merged commit 291664b into espressomd:python Oct 28, 2018
RudolfWeeber pushed a commit to RudolfWeeber/espresso that referenced this pull request Oct 28, 2018
Py: pickle support for collision detection + test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants