-
Notifications
You must be signed in to change notification settings - Fork 38
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
02 - Vector Matching #55
Comments
Hi Edwin, So, the vector matching workflow (as you've found) is not in a good way. This is for a couple of reasons, primarily due to upstream issues about dealing with ragged arrays and downstream issues to do with orix. I expect the
def crystal_from_vector_matching(z_matches):
"""Takes vector matching results for a single navigation position and
returns the best matching phase and orientation with correlation and
reliability to define a crystallographic map.
Parameters
----------
z_matches : numpy.array
Template matching results in an array of shape (m,5) sorted by
total_error (ascending) within each phase, with entries
[phase, R, match_rate, ehkls, total_error]
Returns
-------
results_array : numpy.array
Crystallographic mapping results in an array of shape (3) with entries
[phase, np.array((z, x, z)), dict(metrics)]
""" is the function that controls the output of: if that's the case then:
|
I think so, yes, the
That
Might be picking real space pixels, I would check the shapes.
So at a guess I would say this object is:
And I would start by checking the phase map is reasonable, as plotting euler angles can be very confusing. If that works we can think about tidying up the orientation conversion code, which at a glance looks like it's probably correct. |
I am trying to work through section 4.3 in example notebook 2 in version 0.13 and am having some trouble. In particular, it appears like
get_crystallographic_map()
is just making another vector object instead of a crystal_map type object. And so then crystal_map doesn't have associatedget_phase_map()
,get_orientation_map()
functions and I am having trouble figuring out how to access the data within crystal_map. Could you please give some guidance on how to use these features?Thanks,
Edwin
The text was updated successfully, but these errors were encountered: