ePSIC-DLS / particlespy

Package for analysing particles in electron microscopy data sets.
GNU General Public License v3.0
19 stars 9 forks source link

Add further clustering methods #39

Closed TomSlater closed 4 years ago

TomSlater commented 4 years ago

This PR adds DBSCAN, OPTICS and AffinityPropagation clustering methods for particle clustering.

Additionally, it fixes a bug in which local_size was not being loaded/saved with segmentation parameters.

It also adds a few additional automatically calculated properties.

codecov[bot] commented 4 years ago

Codecov Report

Merging #39 into master will increase coverage by 3.44%. The diff coverage is 47.61%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #39      +/-   ##
==========================================
+ Coverage   67.90%   71.35%   +3.44%     
==========================================
  Files          15       14       -1     
  Lines         810      733      -77     
==========================================
- Hits          550      523      -27     
+ Misses        260      210      -50     
Impacted Files Coverage Δ
ParticleSpy/tests/test_particle_analysis.py 100.00% <ø> (ø)
ParticleSpy/tests/test_particle_clustering.py 100.00% <ø> (ø)
ParticleSpy/ptcl_class.py 77.24% <40.00%> (-5.60%) :arrow_down:
ParticleSpy/ParticleAnalysis.py 73.74% <66.66%> (-0.30%) :arrow_down:
ParticleSpy/find_zoneaxis.py