Skip to content

Commit

Permalink
minor updates to phase mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
cophus committed Jan 22, 2025
1 parent 25542b1 commit 3c04949
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions py4DSTEM/process/diffraction/crystal_phase.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def quantify_single_pattern(
plot_correlation_radius=False,
scale_markers_experiment=40,
scale_markers_calculated=200,
max_marker_size = 400,
crystal_inds_plot=None,
phase_colors=None,
figsize=(10, 7),
Expand Down Expand Up @@ -615,16 +616,23 @@ def quantify_single_pattern(
qy0,
qx0,
# s = scale_markers_experiment * intensity0,
s=scale_markers_experiment
* bragg_peaks.data["intensity"][np.logical_not(keep)],
s=np.minimum(
scale_markers_experiment
* bragg_peaks.data["intensity"][np.logical_not(keep)],
max_marker_size,
),
marker="o",
facecolor=[0.7, 0.7, 0.7],
)
ax.scatter(
qy,
qx,
# s = scale_markers_experiment * intensity,
s=scale_markers_experiment * bragg_peaks.data["intensity"][keep],
s=np.minimum(
scale_markers_experiment
* bragg_peaks.data["intensity"][keep],
max_marker_size,
),
marker="o",
facecolor=[0.7, 0.7, 0.7],
)
Expand Down Expand Up @@ -799,6 +807,7 @@ def quantify_phase(
strain_max=0.02,
include_false_positives=True,
weight_false_positives=1.0,
weight_unmatched_peaks=1.0,
progress_bar=True,
):
"""
Expand Down Expand Up @@ -899,6 +908,7 @@ def quantify_phase(
strain_max=strain_max,
include_false_positives=include_false_positives,
weight_false_positives=weight_false_positives,
weight_unmatched_peaks=weight_unmatched_peaks,
plot_result=False,
verbose=False,
returnfig=False,
Expand Down

0 comments on commit 3c04949

Please sign in to comment.