You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix PersistenceLength normalization for sliced run (Issue #5453)
PersistenceLength._conclude() normalized bond_autocorrelation using
the total number of frames in the trajectory instead of the number
of frames actually analyzed. This gave wrong results whenever run()
was called with start, stop, or step. Now uses self.n_frames, which
AnalysisBase already tracks for this purpose. Added a regression
test comparing full trajectory and sliced runs against manually
computed normalization values.
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
26
27
* `AtomGroup.rotate()` and the `rotateby` trajectory transformation now
27
28
also rotate velocities and forces besides positions. This also affects
28
29
`MDAnalysis.analysis.align.alignto()` and `AlignTraj`, since they
@@ -120,6 +121,7 @@ Deprecations
120
121
* 2.10.0
121
122
122
123
Fixes
124
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
123
125
* Fix incorrect conversion factors for speed units A/fs, A/us, A/ms
124
126
in MDAnalysis.units (Issue #5051, PR #5053)
125
127
* `analysis.polymer.sort_backbone` is now working for discontinuous polymers
@@ -212,6 +214,7 @@ Deprecations
212
214
* 2.9.0
213
215
214
216
Fixes
217
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
215
218
* Add support for TPR files produced by GROMACS 2024.4 and GROMACS 2025.0
216
219
* Fixes invalid default unit from Angstrom to Angstrom^{-3} for
217
220
convert_density() function. (Issue #4829)
@@ -254,6 +257,7 @@ Changes
254
257
* 2.8.0
255
258
256
259
Fixes
260
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
257
261
* Fix `test_imd.py` test failures after imdclient 0.2.4
258
262
increased default timeout by ensuring EOF sent (Issue #5442, PR #5443)
259
263
* Allows bond/angle/dihedral connectivity to be guessed additively with
@@ -389,6 +393,7 @@ Deprecations
389
393
* 2.7.0
390
394
391
395
Fixes
396
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
392
397
* Fix doctest errors of lib/transformations.py (Issue #3925, PR #4370)
393
398
* Fix documentation building errors due to `html_static_path` and unindented
394
399
block of code (Issue #4362, PR #4365)
@@ -458,6 +463,7 @@ Deprecations
458
463
* 2.6.1
459
464
460
465
Fixes
466
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
461
467
* Fix Atom type guessing error (PR #4168, Issue #4167)
462
468
463
469
Enhancements
@@ -482,6 +488,7 @@ Deprecations
482
488
* 2.6.0
483
489
484
490
Fixes
491
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
inconsistent (but scientifically correct) results on Intel macOS
487
494
(Issue #4211)
@@ -541,6 +548,7 @@ Deprecations
541
548
* 2.5.0
542
549
543
550
Fixes
551
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
544
552
* Fixed using 'rb' mode inside GSDReader to avoid FutureWarning from GSDFile (Issue #4152)
545
553
* Fixed ChainReader performing transformations correctly across boundaries in the individual trajectories
546
554
(Issue #3657 #4008 PR #3906)
@@ -631,6 +639,7 @@ Changes
631
639
* 2.4.3
632
640
633
641
Fixes
642
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
634
643
* Fixed DCD reading for large (>2Gb) files (Issue #4039). This was broken
635
644
for versions 2.4.0, 2.4.1 and 2.4.2
636
645
* Fix element parsing from PSF files tests read via Parmed (Issue #4015)
@@ -641,6 +650,7 @@ Fixes
641
650
* 2.4.2
642
651
643
652
Fixes
653
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
644
654
* np.histogramdd calls in :class:`DensityAnalysis` now pass the `density`
645
655
argument rather than the NumPy 1.24 removed `normed` (PR #3976)
646
656
* visualization.streamlines_3D and visualization.streamlines no longer
@@ -653,6 +663,7 @@ Fixes
653
663
* 2.4.1
654
664
655
665
Fixes
666
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
656
667
* Fixes pyproject.toml minimum pin for biopython
657
668
658
669
@@ -662,6 +673,7 @@ Fixes
662
673
* 2.4.0
663
674
664
675
Fixes
676
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
665
677
* Update hbond analysis doc string to use exclusive bound language
666
678
(Issue #3847)
667
679
* XTC and TRR readers now fail with IOError when a status except EOK (=0) is
@@ -755,6 +767,7 @@ Deprecations
755
767
* 2.3.0
756
768
757
769
Fixes
770
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
758
771
* Fixes awk call in deploy.yaml tests for macos runners (Issue #3693)
759
772
* add a 0.5 for correct midpoints in hole analysis (Issue #3715)
760
773
* Fix reading error when PDB CONECT records are corrupt. (Issue #988)
@@ -798,6 +811,7 @@ Deprecations
798
811
* 2.2.0
799
812
800
813
Fixes
814
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
801
815
* Fixed issue where Reader.copy() did not preserve optional arguments
802
816
and kwargs passed to the original class (Issue #3664, PR #3685)
803
817
* Iterating a SingleFrameReaderBase trajectory now rewinds the
@@ -895,6 +909,7 @@ Deprecations
895
909
* 2.1.0
896
910
897
911
Fixes
912
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
898
913
* Use uint64_t loop counters in C level distance functions to avoid overflow
899
914
for large arrays (Issue #3512, PR #3513).
900
915
* Prevents attempts to close an already closed NamedStream (Issue #3386)
@@ -946,6 +961,7 @@ Deprecations
946
961
* 2.0.0
947
962
948
963
Fixes
964
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
949
965
* Added an `rdkit_kwargs` parameter to pass arguments to the RDKitConverter
950
966
from the `select_atoms` method (Issue #3319, PR #3324)
951
967
* Fixes AtomGroup.unique, ResidueGroup.unique, SegmentGroup.unique not
@@ -1309,6 +1325,7 @@ Deprecations
1309
1325
* 1.1.1
1310
1326
1311
1327
Fixes
1328
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
1312
1329
* Remove absolute paths from package upload to pypi.
1313
1330
1314
1331
@@ -1318,6 +1335,7 @@ Fixes
1318
1335
* 1.1.0
1319
1336
1320
1337
Fixes
1338
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
1321
1339
* Removes use of absolute paths in setup.py to avoid Windows installation
1322
1340
failures (Issue #3129)
1323
1341
* Adds test for crashes caused by small box NSGrid searches (Issue #2670)
@@ -1361,6 +1379,7 @@ Enhancements
1361
1379
* 1.0.1
1362
1380
1363
1381
Fixes
1382
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
1364
1383
* Due to issues with the reliability/accuracy of `nsgrid`, this method is
1365
1384
currently not recommended for use. It has also been removed as an option
1366
1385
from lib.capped_distance and lib.self_capped_distance. Please use PKDTree
@@ -1423,6 +1442,7 @@ Deprecations
1423
1442
* 1.0.0
1424
1443
1425
1444
Fixes
1445
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
1426
1446
* MOL2Writer now accepts both Universes and AtomgGroups (Issue #2717)
1427
1447
* Use user-provided `remark` in `XYZWriter` (Issue #2692)
1428
1448
* Added more informative error messages about topology attributes
@@ -1625,6 +1645,7 @@ Deprecations
1625
1645
* 0.20.1
1626
1646
1627
1647
Fixes
1648
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
1628
1649
* The NetCDF writer now writes `cell_angle` units as `degree` instead of
1629
1650
`degrees` in accordance with the AMBER NetCDF convention (Issue #2327).
1630
1651
* Fixed installation without Cython (Issue #2337)
@@ -1698,6 +1719,7 @@ Changes
1698
1719
* changed the water bridge analysis output format (PR #2087)
1699
1720
1700
1721
Fixes
1722
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
1701
1723
* fixed ChainReader setting format with format keyword (Issue #2334)
1702
1724
* fixed lack of check for scaling of NCDFReader velocities (Issue #2323)
1703
1725
* fixed PDBReader and PDBWriter newlines for PDB header (Issue #2324)
@@ -1769,6 +1791,7 @@ Changes
1769
1791
* 0.19.1
1770
1792
1771
1793
Fixes
1794
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
1772
1795
* limit output of Chainreader __repr__ (#2109)
1773
1796
* added missing docs for lib.pkdtree (#2104)
1774
1797
* Added sphinx markup for FrameIterator (#2106)
@@ -1857,6 +1880,7 @@ Enhancements
1857
1880
(where possible) (Issue #1041 PR #2080)
1858
1881
1859
1882
Fixes
1883
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
1860
1884
* Rewind in the SingleFrameReader now reads the frame from the file (Issue #1929)
1861
1885
* Fixed order of indices in Angle/Dihedral/Improper repr
1862
1886
* coordinates.memory.MemoryReader now takes np.ndarray only (Issue #1685)
@@ -1956,6 +1980,7 @@ Enhancements
1956
1980
* Added AtomGroup, ResidueGroup and SegmentGroup to the top module namespace
1957
1981
1958
1982
Fixes
1983
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
1959
1984
* Fixed MPI fork() warning when importing MDAnalysis in an Infiniband-enabled
1960
1985
MPI environment (PR #1794)
1961
1986
* Fixed waterdynamics SurvivalProbability ignoring the t0 start time
@@ -2034,6 +2059,7 @@ Deprecations
2034
2059
* timeseries keyword format is replaced by order. The format keyword is marked for deprecation in 1.0
2035
2060
2036
2061
Fixes
2062
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
2037
2063
* Fixed analysis.psa.dist_mat_to_vec not returning int values (Issue #1507)
2038
2064
* Fixed triclinic PBC transform for a- and b- axes (Issue #1697)
2039
2065
* Fixed nuclinfo.tors() not converting delta (Issue #1572)
@@ -2098,6 +2124,7 @@ Deprecations
2098
2124
* deprecated the core.flag registry for 1.0 (Issue #782)
2099
2125
2100
2126
Fixes
2127
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
2101
2128
* fixed GROWriter truncating long resids from the wrong end (Issue #1395)
2102
2129
* Fixed dtype of numpy arrays to accomodate 32 bit architectures (Issue #1362)
2103
2130
* Groups are hashable on python 3 (Issue #1397)
@@ -2129,6 +2156,7 @@ Enhancements
2129
2156
* made online docs responsive with the Alabaster Sphinx theme (#378)
2130
2157
2131
2158
Fixes
2159
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
2132
2160
* In Universe.transfer_to_memory(): dt is now adjusted with step (Issue #1310)
2133
2161
* Various documentation sphinx errors (PR #1312)
2134
2162
* Bugfix in confdistmatrix.get_distance_matrix; now works on all trajectory types.
@@ -2222,6 +2250,7 @@ Enhancements
2222
2250
weights="size") by about 5x (partially Issue #1191)
2223
2251
2224
2252
Fixes
2253
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
2225
2254
* Trajectory slicing made completely Pythonic (Issue #918 PR #1195)
2226
2255
* Argument validation of dist_mat_to_vec is fixed (#597 PR #1183)
2227
2256
* Give correct error when the topology file format is not recognized (Issue #982)
@@ -2357,6 +2386,7 @@ Enhancements
2357
2386
* Iteration and seeking in PDB files made faster (Issue #848)
2358
2387
2359
2388
Fixes
2389
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
2360
2390
* Fixed TypeError in PSAnalysis heatmap-dendrogram plotting (Issue #1018)
2361
2391
* ENT file format added to PDB Readers/Writers/Parsers (Issue #834)
2362
2392
* rmsd now returns proper value when given array of weights (Issue #814)
@@ -2451,6 +2481,7 @@ Changes
2451
2481
before trying to deduce the format from file extension. (Issue #712)
2452
2482
2453
2483
Fixes
2484
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
2454
2485
2455
2486
* Syntax error corrected in psa.py (Issue #738)
2456
2487
* XDR file seeking and telling working again for large files (Issue #677).
@@ -2530,6 +2561,7 @@ Changes
2530
2561
* MOL2Writer.write now only writes a single frame (Issue #521)
2531
2562
2532
2563
Fixes
2564
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
2533
2565
2534
2566
* Fixed select_atoms requiring a trajectory be loaded (Issue #270)
2535
2567
* AtomGroup timesteps no longer cached (Issue #606)
@@ -2577,6 +2609,7 @@ Enhancements
2577
2609
Changes
2578
2610
2579
2611
Fixes
2612
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
2580
2613
* Fixed OpenMP detection on Linux/OSX #459
2581
2614
* Fixed reading of LAMMPS trajectory times: default unit ought
2582
2615
to be fs and not ps
@@ -2631,6 +2664,7 @@ Changes
2631
2664
* To build with debug-symbols use 'MDA_DEBUG_CFLAGS' instead of 'MDA_DEBUG_CFLAGS'
2632
2665
2633
2666
Fixes
2667
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
2634
2668
* Fixed minor issue in lib.mdamath.make_whole where if all bonds
2635
2669
were correctly sized, it wouldn't notice that multiple fragments
2636
2670
had been given. (Issue #445)
@@ -3227,6 +3261,7 @@ Testsuite
3227
3261
* 0.7.5.1
3228
3262
3229
3263
Fixes
3264
+
* `PersistenceLength._conclude()` now normalizes `results.bond_autocorrelation` using the number of frames actually analyzed instead of the total trajectory frame count, fixing incorrect results when `run()` is called with `start`/`stop`/`step` (Issue #5453).
0 commit comments