Skip to content

Commit

Permalink
Fix a couple typos
Browse files Browse the repository at this point in the history
  • Loading branch information
viljarjf committed Jun 11, 2024
1 parent b1aa171 commit d251f1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyxem/signals/indexation_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion pyxem/utils/indexation_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d251f1e

Please sign in to comment.