Skip to content

Commit

Permalink
Merge pull request mdtraj#1171 from mpharrigan/redundantcheck
Browse files Browse the repository at this point in the history
Remove unnecessary restriction
  • Loading branch information
mpharrigan authored Aug 22, 2016
2 parents c5c9af8 + 0203b4a commit c22c829
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions mdtraj/core/trajectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,6 @@ def iterload(filename, chunk=100, **kwargs):
if extension not in _TOPOLOGY_EXTS:
topology = _parse_topology(top)

if chunk % stride != 0:
raise ValueError('Stride must be a divisor of chunk. stride=%d does not go '
'evenly into chunk=%d' % (stride, chunk))
if chunk == 0:
# If chunk was 0 then we want to avoid filetype-specific code
# in case of undefined behavior in various file parsers.
Expand Down

0 comments on commit c22c829

Please sign in to comment.