Difference between self._sliced_trajectory
and self._trajectory
in analysis classes
#4426
Replies: 3 comments 3 replies
-
Off the top of my head, the likely reasoning here is that I'm going to tag @orbeckst here who might have a better recollection of all this. |
Beta Was this translation helpful? Give feedback.
-
I think you're both correct. Did you look at the git-blame log to find out where we implemented the change? The corresponding PR might have additional information. We should document internal usage — comments and docs. |
Beta Was this translation helpful? Give feedback.
-
It was @rsexton2 in #3415 but I can't see the description of I now assume that all subclasses should not touch and these: And this is probably the reason for the bug #4423 (and few others when analysis is run with explicit |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I wonder what's the difference between
self._trajectory
(that gets initialized inAnalysisBase.__init__
) andself._sliced_trajectory
(initialized in_setup_frames
), and which should be used in which case?The way I see it, is that
self._trajectory
should basically never be used in analysis runs, since it doesn't hold the information aboutstart, stop, step
orframes
arguments, passed torun()
method. However, I sometimes see subclasses using directlyself._trajectory
(e.g.diffusionmap.DistanceMatrix
orpca.PCA
). What's the rationale for that?Tagging @hmacdope and @IAlibay since it continues the discussion in PR #4423
Beta Was this translation helpful? Give feedback.
All reactions