rs-station / reciprocalspaceship

Tools for exploring reciprocal space
https://rs-station.github.io/reciprocalspaceship/
MIT License
28 stars 12 forks source link

`DataSet.write_mtz()` should not move unmerged reflections to reciprocal ASU #111

Closed JBGreisman closed 2 years ago

JBGreisman commented 2 years ago

This PR fixes #110 to ensure that unmerged reflections are not moved to the reciprocal ASU after a call to DataSet.write_mtz().

codecov-commenter commented 2 years ago

Codecov Report

Merging #111 (277a199) into main (9d9b052) will increase coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #111   +/-   ##
=======================================
  Coverage   98.72%   98.72%           
=======================================
  Files          41       41           
  Lines        1569     1574    +5     
=======================================
+ Hits         1549     1554    +5     
  Misses         20       20           
Flag Coverage Δ
unittests 98.72% <100.00%> (+<0.01%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
reciprocalspaceship/io/mtz.py 100.00% <100.00%> (ø)

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 9d9b052...277a199. Read the comment docs.

JBGreisman commented 2 years ago

The most recent commit also extends this PR to support invoking DataSet.write_mtz() or DataSet.to_gemmi() with unmerged data that is already in the reciprocal ASU. Previously, such data would have been re-mapped back to the observed indices upon a call to write_mtz() or to_gemmi()