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
The ENCORE module should work with all kinds of readers. As revealed by the use of the DUMPReader in this mailing list question this is not the case.
Actual behavior
The use of trajectory.timestep in ENCORE in many places means it cannot use readers that do not have the timeseries attribute. Currently only DCDReader and MemoryReader expose the timeseries attribute in the correct way to allow ENCORE to work.
Code to reproduce the behavior
importMDAnalysisasmdafromMDAnalysis.analysisimportencorefromMDAnalysisTests.datafilesimportLAMMPSDUMPu=mda.Universe(LAMMPSDUMP, format='LAMMPSDUMP',atom_style="id type x y z")
es_conv=encore.ces_convergence(u, 50, select='index 1')
The current workaround is to load your trajectory into the MemoryReader using AnalysisFromFunction
Expected behavior
The
ENCORE
module should work with all kinds of readers. As revealed by the use of the DUMPReader in this mailing list question this is not the case.Actual behavior
The use of
trajectory.timestep
inENCORE
in many places means it cannot use readers that do not have thetimeseries
attribute. Currently onlyDCDReader
andMemoryReader
expose thetimeseries
attribute in the correct way to allow ENCORE to work.Code to reproduce the behavior
The current workaround is to load your trajectory into the
MemoryReader
usingAnalysisFromFunction
Solution
We should change to using
AtomGroup.positions
.The text was updated successfully, but these errors were encountered: