Closed kmdalton closed 3 years ago
Merging #60 (1232672) into main (9913ca8) will increase coverage by
0.03%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## main #60 +/- ##
==========================================
+ Coverage 98.72% 98.75% +0.03%
==========================================
Files 37 38 +1
Lines 1488 1529 +41
==========================================
+ Hits 1469 1510 +41
Misses 19 19
Flag | Coverage Δ | |
---|---|---|
unittests | 98.75% <100.00%> (+0.03%) |
:arrow_up: |
Flags with carried forward coverage won't be shown. Click here to find out more.
Impacted Files | Coverage Δ | |
---|---|---|
reciprocalspaceship/utils/__init__.py | 100.00% <100.00%> (ø) |
|
reciprocalspaceship/utils/asu.py | 100.00% <100.00%> (ø) |
|
reciprocalspaceship/utils/cell.py | 100.00% <100.00%> (ø) |
|
reciprocalspaceship/utils/stats.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 9913ca8...1232672. Read the comment docs.
completeness.py
to redundancy.py
which makes more sense as you notedThis function is maybe too useful to be totally hidden away as a private method. I am happy to move it to utils
at your discretion. I think if we do move it to utils
, it should not return a DataSet
. Rather, it should return an n x 3
array of miller indices and an n
array of ints or floats.
Let me know what you want to do. I'm happy to do whatever. For me the most useful things in this PR are the generate_*
functions I added. I'm happy as long as those are not contentious.
okay -- i moved redundancy.py
into utils/stats.py
. I cleaned up the imports and tests.
Okay. I will merge this.
Oops -- accidentally closed this. When I meant to merge. Nothing to see here, please move along...
This branch attempts to address #59 . In this commit I have added a new
rs.stats
module. This contains a function for computing the multiplicity of a set of miller indices under a given a cell and spacegroup. One can cheaply get the completeness from the output of this function. I have also added tests, and two new methods tors.utils
in order to support stats. Since this is a fairly substantial change, I'm going to request that @JBGreisman do a thorough code review.