mdanalysis icon indicating copy to clipboard operation
mdanalysis copied to clipboard

Restructured WaterOrientationalRelaxation

Open PicoCentauri opened this issue 4 years ago • 11 comments
trafficstars

Partly Fixes MDAnalysis/waterdynamics#22

Changes made in this Pull Request:

The WaterOrientationalRelaxation was restructured to follow the start, stop and step attributes of the AnalysisBase. The documentation was also improved and the example was adjusted to a pure water system. I also moved everything into the class documentation.

It seems that the results after my restructuring are okay but maybe somebody who knows how these correlation function should look takes a look at the results.

PR Checklist

  • [x] Tests?
  • [x] Docs?
  • [ ] CHANGELOG updated?
  • [x] Issue raised/referenced?

PicoCentauri avatar Apr 28 '21 16:04 PicoCentauri

Hello @PicoCentauri! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 376:80: E501 line too long (82 > 79 characters) Line 430:78: W291 trailing whitespace

Comment last updated at 2021-04-30 21:06:00 UTC

pep8speaks avatar Apr 28 '21 16:04 pep8speaks

Codecov Report

Merging #3247 (bf39ed5) into develop (f2745a9) will increase coverage by 0.03%. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    MDAnalysis/mdanalysis#3247      +/-   ##
===========================================
+ Coverage    92.81%   92.84%   +0.03%     
===========================================
  Files          170      170              
  Lines        22801    22810       +9     
  Branches      3239     3241       +2     
===========================================
+ Hits         21162    21179      +17     
+ Misses        1591     1583       -8     
  Partials        48       48              
Impacted Files Coverage Δ
package/MDAnalysis/analysis/waterdynamics.py 96.01% <100.00%> (+0.42%) :arrow_up:
package/MDAnalysis/topology/guessers.py 100.00% <0.00%> (ø)
package/MDAnalysis/core/topologyattrs.py 96.68% <0.00%> (ø)
package/MDAnalysis/topology/ITPParser.py 96.84% <0.00%> (ø)
package/MDAnalysis/coordinates/ParmEd.py 93.18% <0.00%> (+2.17%) :arrow_up:
package/MDAnalysis/analysis/gnm.py 99.18% <0.00%> (+2.38%) :arrow_up:

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 f2745a9...bf39ed5. Read the comment docs.

codecov[bot] avatar Apr 28 '21 16:04 codecov[bot]

Are these changes are backwards-compatible?

orbeckst avatar May 06 '21 00:05 orbeckst

In some way:

  • t0, the argument for the initial step was silently ignored.
  • dtmax, was the argument for the maximal step size considered for the correlation function. During my tests it seemed that only dtmax=2worked. Therefore, I removed the argument dtmax.

PicoCentauri avatar May 07 '21 07:05 PicoCentauri

It sounds as if these changes get an entry under "Fixes" in the CHANGELOG. Then this PR can go in anytime after 2.0.0.

orbeckst avatar May 07 '21 23:05 orbeckst

@alejob could you please review this PR? Thanks!

orbeckst avatar May 07 '21 23:05 orbeckst

In some way:

  • t0, the argument for the initial step was silently ignored.
  • dtmax, was the argument for the maximal step size considered for the correlation function. During my tests it seemed that only dtmax=2worked. Therefore, I removed the argument dtmax.

Hi there!

dtmax is an important part of WOR analysis, this because is the time windows where the water molecules relax. Did this change pass the unitary test?

edit: Ok, I see that it has a new name.

alejob avatar May 10 '21 23:05 alejob

@PicoCentauri is this PR something you might want to come back to?

orbeckst avatar Apr 14 '22 08:04 orbeckst

Currently, I have to no time to look into this in great details. When we had the last round of nice feedback I had the feeling that the current state of the class is physically broken and that a transition to the AnalysisBase is not as straightforward as I thought in the beginning.

PicoCentauri avatar Apr 14 '22 15:04 PicoCentauri

Currently, I have to no time to look into this in great details. When we had the last round of nice feedback I had the feeling that the current state of the class is physically broken and that a transition to the AnalysisBase is not as straightforward as I thought in the beginning.

@PicoCentauri this is on the 2.2.0 milestone, from this comment shall I assume that this is not going to make it? (I've not been keeping up with the review comments sorry).

If so, which future milestone shall I add this to? 2.3.0 or 3.0.0?

IAlibay avatar May 16 '22 12:05 IAlibay

Probabaly 3.0.0

PicoCentauri avatar May 17 '22 08:05 PicoCentauri