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 properties script interface #4629

Merged

Conversation

pkreissl
Copy link
Contributor

@pkreissl pkreissl commented Dec 14, 2022

Fixes #4616

Description of changes:

  • replace most of the particle property setters MPI callbacks by fully MPI-parallel code
    • a few MPI callbacks remain for properties that are relevant to reaction methods (position, velocity, type, charge), but these will be removed in the near future by Prototype reaction method in Python #4617
    • some code duplication was introduced in particle_node.cpp and will be removed in the future, when the particle management will become more parallel (i.e. no more particle cache, id tracking and type tracking)
  • remove 300 lines of C++ code
  • deprecate system.auto_exclusions(n) in favor of system.part.auto_exclusions(distance=n)

@pkreissl pkreissl force-pushed the particle_properties_script_interface branch 2 times, most recently from 9d144d6 to 1baa2db Compare December 14, 2022 12:38
@jngrad jngrad self-assigned this Jan 9, 2023
jngrad added a commit that referenced this pull request Jan 12, 2023
Fixes #4644
Fixes #4645
Pre-requisite to #4629

Description of changes:
- bugfix: the type map is now properly updated when clearing particles
- add missing feature guards in the testsuite
- add subtests to provide more context when a test fails
@jngrad jngrad force-pushed the particle_properties_script_interface branch 3 times, most recently from 22b9c60 to 680f047 Compare January 25, 2023 21:09
@jngrad jngrad force-pushed the particle_properties_script_interface branch from 680f047 to 5d7087e Compare January 25, 2023 22:31
@jngrad jngrad changed the title WIP: Particle properties script interface Particle properties script interface Jan 25, 2023
@jngrad jngrad marked this pull request as ready for review January 25, 2023 23:20
@jngrad jngrad requested review from reinaual and removed request for christophlohrmann January 26, 2023 16:16
@jngrad jngrad added the automerge Merge with kodiak label Feb 3, 2023
@kodiakhq kodiakhq bot merged commit 6d08b88 into espressomd:python Feb 3, 2023
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.

Set/get particle properties via the script interface
3 participants