Skip to content

Conversation

@andthum
Copy link
Owner

@andthum andthum commented Oct 18, 2023

Fix msd_layer_*.py (issue #98)

Related issue(s)

Resolves #98.

Type of change

  • Change of core package.
  • Change of scripts.
  • Bug fix.
  • New feature.
  • Code refactoring.
  • Dependency update.
  • Documentation update.
  • Maintenance.
  • Other: Description.
  • Non-breaking (backward-compatible) change.
  • Breaking (non-backward-compatible) change.

Proposed changes

Function scripts.dynamics.msd_layer_serial.msd_lay: Use wrapped coordinates to assign particles to bins.

PR checklist

  • I followed the guidelines in the Developer's guide.
  • New/changed code is properly tested.
  • New/changed code is properly documented.
  • The CI workflow is passing.

@github-actions github-actions bot added bugfix Pull requests that fix a bug documentation Improvements or additions to documentation patch Change that results in a new patch version refactoring Code refactoring labels Oct 18, 2023
@andthum andthum force-pushed the fix/scripts/dynamics/msd_layer_serial branch from ee20979 to 7fc0665 Compare October 18, 2023 12:08
Function `msd_layer`: Use wrapped particle positions for the binning.
This fixes issue #98:
"[Bug]: msd_layer_*.py: Use wrapped positions for assignment of
compounds to bins and unwrapped coordinates for MSD calculation"

Format code, docstrings and comments.
Adopt the code to the changes of the function
`scripts.dynamics.msd_layer_serial.msd_layer`.
Include the scripts `scripts.dynamics.msd_layer_serial` and
`scripts.dynamics.msd_layer_parrallel` in the official MDTools
documentation.
@andthum andthum force-pushed the fix/scripts/dynamics/msd_layer_serial branch from 7fc0665 to 4b1f0d2 Compare October 18, 2023 12:21
@andthum andthum merged commit 3286e0b into main Oct 18, 2023
@andthum andthum deleted the fix/scripts/dynamics/msd_layer_serial branch October 18, 2023 12:33
andthum added a commit to andthum/hpc_submit_scripts that referenced this pull request Oct 27, 2023
Submit the `msd_layer*` together with all other bulk scripts
(`--scritps 1`), because the issue that has prevented the `msd_layer*`
scripts to work on bulk simulations has been fixed
(see andthum/mdtools#181).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull requests that fix a bug documentation Improvements or additions to documentation patch Change that results in a new patch version refactoring Code refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: msd_layer_*.py: Use wrapped positions for assignment of compounds to bins and unwrapped coordinates for MSD calculation

2 participants