Commit d036d2a
authored
BUG: large DCD file seeking on Win (#5086)
* BUG: large DCD file seeking on Win
* Fixes gh-4879
* 32-bit signed integer arithemetic was being used
in the DCD trajectory seeking Cython logic on Windows,
causing an overflow for trajectories with a large number
of frames on that platform. The behavior has existed since
at least MDAnalysis `2.5.0`, and a regression test and
patch have been added here. The regression test is
based on the original scripts Oli provided in the matching
ticket, though I note in a comment that we likely don't actually
need a large file, and could probably simplify the regression
test by artificially setting the frame numbers to start from
a large value. Nonetheless, this test does fail before and
pass after the patch locally on Windows.
* DOC: PR 5086 revisions
* Update `CHANGELOG` based on reviewer request.
[ci skip] [skip ci]1 parent d412c9a commit d036d2a
File tree
3 files changed
+23
-3
lines changed- package
- MDAnalysis/lib/formats
- testsuite/MDAnalysisTests/formats
3 files changed
+23
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
| 390 | + | |
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | | - | |
| 396 | + | |
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
671 | 673 | | |
672 | 674 | | |
673 | 675 | | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
0 commit comments