Skip to content

Commit

Permalink
Merge pull request #1920 from jamesmkrieger/catdcd_first
Browse files Browse the repository at this point in the history
add first to catdcd goto
  • Loading branch information
jamesmkrieger authored Jul 29, 2024
2 parents 098e5ec + e66eccf commit 555f2f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions prody/apps/prody_apps/prody_catdcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ def prody_catdcd(*dcd, **kwargs):
out = prody.DCDFile(output, 'w')
count = 0
stride = kwargs.get('stride', 1)
goto = stride != 1
slc = slice(kwargs.get('first', 0), kwargs.get('last', -1),
first = kwargs.get('first', 0)
goto = stride != 1 or first != 0
slc = slice(first, kwargs.get('last', -1),
stride).indices(len(traj)+1)
for i in range(*slc):
if goto:
Expand Down

0 comments on commit 555f2f9

Please sign in to comment.