From d251f1e0f8dfe14e666d9fd9cb46127334968e6b Mon Sep 17 00:00:00 2001 From: Viljar Femoen Date: Tue, 11 Jun 2024 10:45:34 +0200 Subject: [PATCH] Fix a couple typos --- pyxem/signals/indexation_results.py | 4 ++-- pyxem/utils/indexation_utils.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyxem/signals/indexation_results.py b/pyxem/signals/indexation_results.py index 0658ff7dc..5c4c6df6c 100644 --- a/pyxem/signals/indexation_results.py +++ b/pyxem/signals/indexation_results.py @@ -201,7 +201,7 @@ def add_bar(i: int) -> str: return f"{i}" out = [] - for hkl in vectors.origional_hkl: + for hkl in vectors.original_hkl: h, k, l = np.round(hkl).astype(np.int16) if fast: out.append(f"{h} {k} {l}") @@ -248,7 +248,7 @@ def extract_vectors_from_orientation_map(result, all_vectors, n_best_index=0): vectors = DiffractingVector( vectors.phase, xyz=vectors.data.copy(), intensity=intensity ) - vectors.origional_hkl = hkl + vectors.original_hkl = hkl # Mirror if necessary. # Mirroring, in this case, means casting (r, theta) to (r, -theta). diff --git a/pyxem/utils/indexation_utils.py b/pyxem/utils/indexation_utils.py index ebbefcbbe..d06e9d654 100644 --- a/pyxem/utils/indexation_utils.py +++ b/pyxem/utils/indexation_utils.py @@ -823,7 +823,7 @@ def _mixed_matching_lib_to_polar( if n_best >= best_cors.shape[0]: n_best = best_cors.shape[0] if n_best < 1: - nbest = 1 + n_best = 1 answer = dispatcher.empty((n_best, 4), dtype=polar_image.dtype) if n_best == 1: max_index_filter = dispatcher.argmax(best_cors)