Skip to content

DDF and clustering updates - #286

Open
maclariz wants to merge 2 commits into
electronmicroscopy:devfrom
maclariz:acom
Open

DDF and clustering updates#286
maclariz wants to merge 2 commits into
electronmicroscopy:devfrom
maclariz:acom

Conversation

@maclariz

@maclariz maclariz commented Sep 1, 2026

Copy link
Copy Markdown

All the work from Sunday was checked. The clustering implementation of dbscan was speeded up with help from Claude to remove redundant scans. "noise" was renamed to "unclustered". A new function was made to add L2 grain labels to a vector, which then makes plotting of diffraction patterns from L2 clusters easy using the existing scatter plot function. This was altered slightly to allow plotting of individual components. I also added docstrings to some functions.

To do:

  • The constructor function for ddf aperture arrays is not there
  • We need to add the r, phi selection function
  • We need to add a function to add in r,phi fields in Vector

cophus and others added 2 commits August 30, 2026 16:54
Some corrections to the new DDF and clustering routines.  "noise" was renamed to "unclustered".  An additional function added to put grain labels into a vector.  The dbscan was rewritten with
help from Claude to eliminate some inefficiencies that made it slow on CPU. An updated ipynb will be sent to accompany this PR.
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.

2 participants