Skip to content

Added unwrap and wrap transformations#2020

Closed
davidercruz wants to merge 22 commits intoMDAnalysis:developfrom
davidercruz:pbc
Closed

Added unwrap and wrap transformations#2020
davidercruz wants to merge 22 commits intoMDAnalysis:developfrom
davidercruz:pbc

Conversation

@davidercruz
Copy link
Contributor

@davidercruz davidercruz commented Aug 3, 2018

Adds a wrap transformation based on atoms.wrap and a unwrap transformation based on @richardjgowers 's _cutil.make_whole

This is the last transformation in my GSOC project :D

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG updated?
  • Issue raised/referenced?

davidercruz and others added 17 commits July 21, 2018 02:43
* removed use of pytest.approx

* removed mock decorator, playing badly with pytest fixtures
Using consistently np.int64 for the indices used in pkdtree avoids type
errors when using unique_int_1d. This should reduce the number of
failing tests on windows.
* Fixes Issue MDAnalysis#2021 with Windows xdr large file
offset handling

* on the Windows platform xdr file offsets are now
forced to use a 64-bit storage type so that, for example,
file seeks beyond 4 GB are correctly reported
corrected rotateby transformation calculation
* added an option to check for pairs within coordinate array using bruteforce_capped_self, pkdtree_capped_self + tests

* Modified guess bonds to use capped function

* seperated the self_capped_function, added tests, modified the guess_bonds function

* modified CHANGELOG, and minor modifications

* modified test for increased coverage, minor modifications to the self_capped_distance
…lysis#2022)

* kdtree now works with pbc, modified _apply_kdtree method in pointselections

* CHANGELOG
@jbarnoud
Copy link
Contributor

jbarnoud commented Aug 6, 2018

Could you rebase against develop? (not merge) The test failure has been fixed in an other pr.

@codecov
Copy link

codecov bot commented Aug 6, 2018

Codecov Report

Merging #2020 into develop will decrease coverage by 0.13%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2020      +/-   ##
===========================================
- Coverage    88.45%   88.31%   -0.14%     
===========================================
  Files          143      144       +1     
  Lines        17223    17241      +18     
  Branches      2637     2638       +1     
===========================================
- Hits         15234    15227       -7     
- Misses        1389     1407      +18     
- Partials       600      607       +7
Impacted Files Coverage Δ
package/MDAnalysis/transformations/__init__.py 100% <100%> (ø) ⬆️
package/MDAnalysis/transformations/wrap.py 100% <100%> (ø)
package/MDAnalysis/analysis/base.py 92.78% <0%> (-4.13%) ⬇️
package/MDAnalysis/coordinates/TRZ.py 81.74% <0%> (-1.53%) ⬇️
package/MDAnalysis/lib/util.py 85.01% <0%> (-1.52%) ⬇️
package/MDAnalysis/analysis/lineardensity.py 62.38% <0%> (-0.92%) ⬇️
package/MDAnalysis/coordinates/TRJ.py 90.6% <0%> (-0.91%) ⬇️
package/MDAnalysis/analysis/gnm.py 95.38% <0%> (-0.77%) ⬇️
...age/MDAnalysis/analysis/hbonds/hbond_autocorrel.py 86.87% <0%> (-0.63%) ⬇️
package/MDAnalysis/lib/transformations.py 78.18% <0%> (-0.44%) ⬇️
... and 5 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 3331c8d...30907f8. Read the comment docs.

@jbarnoud
Copy link
Contributor

jbarnoud commented Aug 7, 2018

Can you tell me what git command you used? It would help me understand what went wrong and how to fix it.

@davidercruz
Copy link
Contributor Author

davidercruz commented Aug 7, 2018 via email


@pytest.mark.parametrize('weights', (
" ",
"totallynotmasses",
Copy link
Member

Choose a reason for hiding this comment

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

🤣

@richardjgowers
Copy link
Member

@davidercruz that should have worked, but I guess it hasn't. Might be best to start a new branch and cherry-pick the commits you made so far.

@davidercruz
Copy link
Contributor Author

@richardjgowers So I should create a new PR and close this one?

@jbarnoud
Copy link
Contributor

jbarnoud commented Aug 10, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants