-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selection of data from cluster analysis #375
Comments
Have you looked at the data selection part of the crystal map tutorial? Your cluster labels in # Either of the below operations
ori = xmap[dbscan.labels_ == 1].orientations
ori = xmap.orientations[dbscan.labels_ == 1] If you've passed only orientations corresponding to one phase to ori = xmap["alpha-Ti"][dbscan.labels_ == 1].orientations Your use case is quite common, I think, and something we should show in the documentation. |
Thank you @hakonanes . I will use this. |
Great! Please report back if it didn't work as you expected or you found an alternative solution. I'm reopening this issue as I want us to remember to include an example showing this in the documentation. |
Fine. I won't be able to do much with this instantly, and I am about to take 2 1/2 weeks annual leave. But if I could do a slice like this on the data, then this makes constructing pole figures from specific variants with appropriately chosen colours rather easy to do... |
I realize this is covered in the docs already. |
Perhaps a silly question, but if you run cluster analysis, get some nice results and split your dataset into a small number of orientations (something that happens for most of my datasets), is there then an easy way to select the raw orientations in each area corresponding to a particular cluster for further analysis?
The text was updated successfully, but these errors were encountered: