Merging crystal maps with not_indexed points results in removal of phase #636
-
I have been trying out kikuchipy 0.8.4 which now keeps the not_indexed points after refinement. However now that I try to merge refined crystal maps which contains not_indexed points, all points in that crystal map will now become not_indexed. E.g. I do hough indexing and refinement on a Super duplex stainless steel with ferrite and austenite. xmap_austenite = kp.indexing.xmap_from_hough_indexing_data(
data=data,
phase_list=phase_list,
data_index=0, # Phase ID for austenite in phase_list
navigation_shape=nav_shape,
step_sizes=(1.0, 1.0),
scan_unit="um",
)
xmap_ferrite = kp.indexing.xmap_from_hough_indexing_data(
data=data,
phase_list=phase_list,
data_index=1, # Phase ID for ferrite in phase_list
navigation_shape=nav_shape,
step_sizes=(1.0, 1.0),
scan_unit="um",
)
print(xmap_austenite, "\n")
print(xmap_ferrite)
Note here that the austenite map is fully indexed, but not the ferrite one. I do refinement of orientations on each crystal map, and the number of orientations for each phase are the same as before, as expected. However when merging the refined crystal maps which contains not_indexed in the ferrite crystal map, the merged crystal map is completely missing ferrite. refined_xmap_austenite = s.refine_orientation(
xmap=xmap_austenite,
detector=det,
master_pattern=mp_austenite,
energy=20, # kV
navigation_mask=None,
trust_region=[1, 1, 1],
# The following are default values
method="minimize",
method_kwargs=dict(method="Nelder-Mead", tol=1e-4),
compute=True,
)
refined_xmap_ferrite = s.refine_orientation(
xmap=xmap_ferrite,
detector=det,
master_pattern=mp_ferrite,
energy=20, # kV
navigation_mask=None,
trust_region=[1, 1, 1],
# The following are default values
method="minimize",
method_kwargs=dict(method="Nelder-Mead", tol=1e-4),
compute=True,
)
print(refined_xmap_austenite)
print(refined_xmap_ferrite)
refined_xmap = kp.indexing.merge_crystal_maps(
[refined_xmap_austenite, refined_xmap_ferrite]
)
print("MERGED MAP", refined_xmap)
I have also seen that when both refined crystal maps contains not_indexed points, it results in a crystal map where all points are not_indexed. The same also happens without refining the crystal maps before merging (e.g. using Could this have been overlooked in the release of 0.8.4? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Issue #637 was created. |
Beta Was this translation helpful? Give feedback.
Issue #637 was created.