Conversation
627eeff to
578014b
Compare
|
That fails with some |
cc9100c to
274b4e2
Compare
|
You need to merge or rebase against develop because #2066 was "fixed". |
274b4e2 to
ffd1614
Compare
cdf268f to
647343f
Compare
|
@richardjgowers I rebase this branch against develop and force-pushed. Be careful with your next |
9a43259 to
b92b502
Compare
|
Ok I still need to
|
package/MDAnalysis/analysis/base.py
Outdated
| deps.append(arg) | ||
| setattr(self, arg, kwargs[arg]) | ||
| if deps: | ||
| raise ValueError(deps) |
There was a problem hiding this comment.
I've made this a VE so that I can find all deprecated usages in the testsuite, will remove later..
package/MDAnalysis/analysis/pca.py
Outdated
| """ | ||
| if not self._calculated: | ||
| self.run() | ||
| self.run(start=start, stop=stop, step=step) |
There was a problem hiding this comment.
this seems to cause errors. Are run and transform meant to be allowed to use different frames? @kain88-de
There was a problem hiding this comment.
Yes. You may first compute the transformation and then apply it to an arbitrary trajectory to project out the motions corresponding to the PCs.
I can't think of a clean way to separate them here so instead of running self.run() rather raise the error and let the user do it explicitly. Also makes for much clearer scripts on the user side.
Needs to be documented in the CHANGELOG and with a
.. versionchanged 0.19.0::
:meth:`transform` does not automatically :meth:`run` the PCA if needed; instead
it raises :exc:`ValueError` to remind the user to perform :meth:`run` first.
orbeckst
left a comment
There was a problem hiding this comment.
comments on PCA; @kain88-de and @jdetle – feel free to correct me.
package/MDAnalysis/analysis/pca.py
Outdated
| """ | ||
| if not self._calculated: | ||
| self.run() | ||
| self.run(start=start, stop=stop, step=step) |
There was a problem hiding this comment.
Yes. You may first compute the transformation and then apply it to an arbitrary trajectory to project out the motions corresponding to the PCs.
I can't think of a clean way to separate them here so instead of running self.run() rather raise the error and let the user do it explicitly. Also makes for much clearer scripts on the user side.
Needs to be documented in the CHANGELOG and with a
.. versionchanged 0.19.0::
:meth:`transform` does not automatically :meth:`run` the PCA if needed; instead
it raises :exc:`ValueError` to remind the user to perform :meth:`run` first.
Codecov Report
@@ Coverage Diff @@
## develop #2055 +/- ##
===========================================
+ Coverage 89.33% 89.34% +0.01%
===========================================
Files 159 159
Lines 18729 18712 -17
Branches 2684 2684
===========================================
- Hits 16731 16719 -12
+ Misses 1396 1387 -9
- Partials 602 606 +4
Continue to review full report at Codecov.
|
|
@orbeckst this is hopefully finished |
orbeckst
left a comment
There was a problem hiding this comment.
Looking good, thanks for all the work. Just update the CHANGELOG, please.
| * PCA.transform now requires that PCA.run has already been called (PR #2055) | ||
|
|
||
| Deprecations | ||
| * Almost all "save()", "save_results()", "save_table()" methods in |
There was a problem hiding this comment.
add start/stop/step deprecations here
package/CHANGELOG
Outdated
| enforced to be of the form ``[lx, ly, lz, alpha, beta, gamma]`` as required | ||
| by the docs (Issue #2046, PR #2048) | ||
| * Added periodic keyword to select_atoms (#759) | ||
| * PCA.transform now requires that PCA.run has already been called (PR #2055) |
There was a problem hiding this comment.
add start/stop/step in run() here
package/CHANGELOG
Outdated
| enforced to be of the form ``[lx, ly, lz, alpha, beta, gamma]`` as required | ||
| by the docs (Issue #2046, PR #2048) | ||
| * Added periodic keyword to select_atoms (#759) | ||
| * PCA.transform now requires that PCA.run has already been called (PR #2055) |
package/CHANGELOG
Outdated
| enforced to be of the form ``[lx, ly, lz, alpha, beta, gamma]`` as required | ||
| by the docs (Issue #2046, PR #2048) | ||
| * Added periodic keyword to select_atoms (#759) | ||
| * PCA.transform now requires that PCA.run has already been called (PR #2055) |
There was a problem hiding this comment.
Add: PCA.transform now requires that run has been called before, otherwise aValueError is raised.
Codecov Report
@@ Coverage Diff @@
## develop #2055 +/- ##
===========================================
+ Coverage 89.33% 89.37% +0.04%
===========================================
Files 159 159
Lines 18729 18712 -17
Branches 2684 2684
===========================================
- Hits 16731 16724 -7
+ Misses 1396 1384 -12
- Partials 602 604 +2
Continue to review full report at Codecov.
|
3 similar comments
Codecov Report
@@ Coverage Diff @@
## develop #2055 +/- ##
===========================================
+ Coverage 89.33% 89.37% +0.04%
===========================================
Files 159 159
Lines 18729 18712 -17
Branches 2684 2684
===========================================
- Hits 16731 16724 -7
+ Misses 1396 1384 -12
- Partials 602 604 +2
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## develop #2055 +/- ##
===========================================
+ Coverage 89.33% 89.37% +0.04%
===========================================
Files 159 159
Lines 18729 18712 -17
Branches 2684 2684
===========================================
- Hits 16731 16724 -7
+ Misses 1396 1384 -12
- Partials 602 604 +2
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## develop #2055 +/- ##
===========================================
+ Coverage 89.33% 89.37% +0.04%
===========================================
Files 159 159
Lines 18729 18712 -17
Branches 2684 2684
===========================================
- Hits 16731 16724 -7
+ Misses 1396 1384 -12
- Partials 602 604 +2
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## develop #2055 +/- ##
===========================================
+ Coverage 89.35% 89.37% +0.01%
===========================================
Files 159 159
Lines 18729 18712 -17
Branches 2684 2684
===========================================
- Hits 16736 16724 -12
+ Misses 1392 1384 -8
- Partials 601 604 +3
Continue to review full report at Codecov.
|
|
@richardjgowers all that is needed are doc/CHANGELOG additions. Then you'll have fixed two issues! ( |
21843d3 to
2d34175
Compare
|
@orbeckst gepöken
…On Wed, Sep 19, 2018 at 7:54 PM, Oliver Beckstein ***@***.***> wrote:
@richardjgowers <https://github.com/richardjgowers> all that is needed
are doc/CHANGELOG additions. Then you'll have fixed two issues! (<carrot
dangle/>)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2055 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AI0jB6bNgyN-FRRZMftifCY3Qtk9MDWxks5ucudQgaJpZM4WIO9r>
.
|
updated usage of Analysis API, start/stop/step now deprecated in __init__ and should be given in run method made PCA setup respect start frame more, if start is given then initial weights are from that frame not frame 0
2d34175 to
00cf3b7
Compare

Fixes #1975 #1979
Starts #1463
Changes made in this Pull Request:
PR Checklist