Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Conversation

@marscher
Copy link
Member

No description provided.

@marscher
Copy link
Member Author

@gph82 can you take a look please?


def transform(self, traj):
aligned = traj.superpose(reference=self.ref, atom_indices=self.atom_indices,
ref_atom_indices=self.ref_atom_indices)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add a warning in the docs that using the alignment modifies the input md.Trajectory object (because traj.superpose returns self).

@gph82
Copy link
Contributor

gph82 commented Nov 14, 2017

Otherwise, LGTM

@marscher
Copy link
Member Author

marscher commented Nov 14, 2017 via email

@gph82
Copy link
Contributor

gph82 commented Nov 14, 2017

except when using the transform method on its own!

@marscher
Copy link
Member Author

marscher commented Nov 14, 2017 via email

@gph82
Copy link
Contributor

gph82 commented Nov 14, 2017

I am doing that very often!

@marscher
Copy link
Member Author

ok, added this just for you :) but it is not bound to the featurizer api, but lives directly in the feature class.

@gph82
Copy link
Contributor

gph82 commented Nov 14, 2017

sure, that is fine. You can make it even just in the doc of the .transform method. But I definitely use feat.transform() very often, quite a lot indeed, and it is actually very useful. I don't think is is unusual

@gph82
Copy link
Contributor

gph82 commented Nov 14, 2017

oh, I just meant add to the doc that there's an inplace transformation, not the option....

@gph82
Copy link
Contributor

gph82 commented Nov 14, 2017

I know @cwehmeyer will appreciate this, I wrote a workaround using add_custom_func

@codecov
Copy link

codecov bot commented Nov 14, 2017

Codecov Report

Merging #1184 into devel will decrease coverage by 0.08%.
The diff coverage is 87.17%.

Impacted file tree graph

@@            Coverage Diff             @@
##            devel    #1184      +/-   ##
==========================================
- Coverage   90.86%   90.78%   -0.09%     
==========================================
  Files         203      202       -1     
  Lines       21168    20949     -219     
==========================================
- Hits        19235    19018     -217     
+ Misses       1933     1931       -2
Impacted Files Coverage Δ
pyemma/coordinates/tests/test_featurizer.py 98.04% <100%> (+0.1%) ⬆️
pyemma/coordinates/data/featurization/misc.py 88.49% <76.47%> (-5.3%) ⬇️
...yemma/coordinates/data/featurization/featurizer.py 89.34% <88.88%> (-1.26%) ⬇️
pyemma/msm/estimators/bayesian_hmsm.py 74.74% <0%> (-15.61%) ⬇️
...emma/coordinates/data/_base/streaming_estimator.py 85.18% <0%> (-14.82%) ⬇️
pyemma/_base/parallel.py 83.33% <0%> (-7.85%) ⬇️
pyemma/util/units.py 64.28% <0%> (-6.02%) ⬇️
pyemma/coordinates/data/featurization/util.py 86.66% <0%> (-2.7%) ⬇️
... and 29 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc849d9...476fd15. Read the comment docs.

@marscher marscher merged commit cbd8a41 into markovmodel:devel Dec 20, 2017
@marscher marscher deleted the add_feature_align branch December 20, 2017 20:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants