rs-station / reciprocalspaceship

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

Add rs.read_pickle() helper method #70

Closed JBGreisman closed 3 years ago

JBGreisman commented 3 years ago

This PR adds a read_pickle() method to the rs namespace in order to easily allow roundtrip operations with DataSet.to_pickle() and rs.read_pickle().

This method is particularly useful for storing non-MTZ compatible dtypes in a way that can be written to a file for later use in rs.

codecov-commenter commented 3 years ago

Codecov Report

Merging #70 (d5bc9d2) into main (53d1427) will increase coverage by 0.01%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #70      +/-   ##
==========================================
+ Coverage   98.76%   98.77%   +0.01%     
==========================================
  Files          38       39       +1     
  Lines        1458     1471      +13     
==========================================
+ Hits         1440     1453      +13     
  Misses         18       18              
Flag Coverage Δ
unittests 98.77% <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/__init__.py 100.00% <100.00%> (ø)
reciprocalspaceship/dataset.py 99.06% <100.00%> (+<0.01%) :arrow_up:
reciprocalspaceship/io/__init__.py 100.00% <100.00%> (ø)
reciprocalspaceship/io/pickle.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 53d1427...d5bc9d2. Read the comment docs.