Skip to content

Conversation

@andthum
Copy link
Owner

@andthum andthum commented Mar 15, 2023

Fix the Default Value of the --every Option of submit_gmx_analyses_lintf2_ether.py

Type of Change

  • 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

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.

andthum added 4 commits March 15, 2023 17:53
Change the default value of the `--every` option from 0 to 1.

The value of the `--every` option is passed to the `-dt` option of the
submitted Gromacs tools that support this option.  The default value was
set to 0 in PR #74
(#74),
because `gmx trjconv` did not process all frames when `-dt` was set to 1
and the spacing between trajectory frames was less than 1 ps.

However, it now turned out that the other Gromacs tools only process the
first frame when `-dt` is set to 0.  Therefore, we reset the default
value for `--every` (i.e. `-dt`) to 1.

In a following commit, we will replace the `-dt` option for `gmx
trjconv` with `-skip`, which should be more robust (see
https://www.mail-archive.com/gmx-users@gromacs.org/msg35903.html and
https://www.mail-archive.com/gmx-users@gromacs.org/msg06868.html).
@github-actions github-actions bot added bugfix Pull requests that fix a bug patch Change that results in a new patch version refactoring Code refactoring labels Mar 15, 2023
@andthum andthum merged commit 8fe3bbe into main Mar 15, 2023
@andthum andthum deleted the fix/analysis/lintf2-ether/gmx/submit-gmx-analyses-lintf2-ether/every-option branch March 15, 2023 17:11
andthum added a commit that referenced this pull request Jun 22, 2023
…and `--dt`

Replace the `--every` option ("read every n-th frame from the
trajectory") by a `--skip` and `--dt` option.  The new options mirror
the `-skip` and `-dt` options of Gromacs analysis tools and therefore
should by less confusing.

Related to pull request 119
(#119) and pull
request 74 (#74).
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 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.

2 participants